mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-18 02:31:01 +01:00
44 lines
852 B
Nix
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;
|
||
|
};
|
||
|
})
|