Merge pull request #325572 from donovanglover/hyprgrass

hyprlandPlugins.hyprgrass: init at 0.7.0, wf-touch: init at 0-unstable-2021-03-19
This commit is contained in:
Masum Reza 2024-07-10 12:55:19 +05:30 committed by GitHub
commit 3c04671643
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 107 additions and 0 deletions

View File

@ -29,6 +29,7 @@ let
{ hycov = import ./hycov.nix; }
{ hypr-dynamic-cursors = import ./hypr-dynamic-cursors.nix; }
{ hyprfocus = import ./hyprfocus.nix; }
{ hyprgrass = import ./hyprgrass.nix; }
{ hyprscroller = import ./hyprscroller.nix; }
{ hyprspace = import ./hyprspace.nix; }
(import ./hyprland-plugins.nix)

View File

@ -0,0 +1,47 @@
{
lib,
mkHyprlandPlugin,
hyprland,
fetchFromGitHub,
cmake,
doctest,
meson,
ninja,
wf-touch,
nix-update-script,
}:
mkHyprlandPlugin hyprland rec {
pluginName = "hyprgrass";
version = "0.7.0";
src = fetchFromGitHub {
owner = "horriblename";
repo = "hyprgrass";
rev = "v${version}";
hash = "sha256-DfM2BqnFW48NlHkBfC7ErHgK7WHlOgiiE+aFetN/yJ4=";
};
nativeBuildInputs = [
cmake
doctest
meson
ninja
];
buildInputs = [ wf-touch ];
dontUseCmakeConfigure = true;
doCheck = true;
passthru.updateScript = nix-update-script { };
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;
};
}

View File

@ -0,0 +1,59 @@
{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
pkg-config,
meson,
cmake,
ninja,
glm,
doctest,
unstableGitUpdater,
}:
stdenv.mkDerivation {
pname = "wf-touch";
version = "0-unstable-2021-03-19";
src = fetchFromGitHub {
owner = "WayfireWM";
repo = "wf-touch";
rev = "8974eb0f6a65464b63dd03b842795cb441fb6403";
hash = "sha256-MjsYeKWL16vMKETtKM5xWXszlYUOEk3ghwYI85Lv4SE=";
};
nativeBuildInputs = [
meson
pkg-config
cmake
ninja
];
buildInputs = [ doctest ];
propagatedBuildInputs = [ glm ];
mesonBuildType = "release";
# Patch wf-touch to generate pkgconfig
patches = fetchpatch {
url = "https://raw.githubusercontent.com/horriblename/hyprgrass/736119f828eecaed2deaae1d6ff1f50d6dabaaba/nix/wf-touch.patch";
hash = "sha256-3YK5YnO0NCwshs1reJFjJ9tIEhTNSS0fPWUDFo3XA3s=";
};
outputs = [
"out"
"dev"
];
passthru.updateScript = unstableGitUpdater { };
meta = {
description = "Touchscreen gesture library";
homepage = "https://github.com/WayfireWM/wf-touch";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ donovanglover ];
platforms = lib.platforms.unix;
};
}