nix-config/packages/hyprgrass.nix
Donovan Glover 72c8cd6b96
packages: Add hyprgrass
Could be useful for making Hyprland more viable on the PinePhone, which
would help avoid all the issues with Phosh.
2024-07-07 20:12:37 -04:00

44 lines
852 B
Nix

{ lib
, stdenv
, hyprland
, fetchFromGitHub
, callPackage
, doctest
}:
let
wf-touch = callPackage ./wf-touch.nix { };
in
stdenv.mkDerivation (finalAttrs: {
pname = "hyprgrass";
version = "0.7.0";
src = fetchFromGitHub {
owner = "horriblename";
repo = "hyprgrass";
rev = "v${finalAttrs.version}";
hash = "sha256-DfM2BqnFW48NlHkBfC7ErHgK7WHlOgiiE+aFetN/yJ4=";
};
nativeBuildInputs = [
doctest
] ++ hyprland.nativeBuildInputs;
buildInputs = [
hyprland
wf-touch
] ++ hyprland.buildInputs;
dontUseCmakeConfigure = true;
doCheck = true;
meta = {
description = "Hyprland plugin for touch gestures";
homepage = "https://github.com/horriblename/hyprgrass";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.linux;
};
})