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:
commit
3c04671643
@ -29,6 +29,7 @@ let
|
|||||||
{ hycov = import ./hycov.nix; }
|
{ hycov = import ./hycov.nix; }
|
||||||
{ hypr-dynamic-cursors = import ./hypr-dynamic-cursors.nix; }
|
{ hypr-dynamic-cursors = import ./hypr-dynamic-cursors.nix; }
|
||||||
{ hyprfocus = import ./hyprfocus.nix; }
|
{ hyprfocus = import ./hyprfocus.nix; }
|
||||||
|
{ hyprgrass = import ./hyprgrass.nix; }
|
||||||
{ hyprscroller = import ./hyprscroller.nix; }
|
{ hyprscroller = import ./hyprscroller.nix; }
|
||||||
{ hyprspace = import ./hyprspace.nix; }
|
{ hyprspace = import ./hyprspace.nix; }
|
||||||
(import ./hyprland-plugins.nix)
|
(import ./hyprland-plugins.nix)
|
||||||
|
@ -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;
|
||||||
|
};
|
||||||
|
}
|
59
pkgs/by-name/wf/wf-touch/package.nix
Normal file
59
pkgs/by-name/wf/wf-touch/package.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user