From 329af0c3514d90f7f01337139950e6a406b64f97 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 8 Jul 2024 11:35:17 -0400 Subject: [PATCH] wf-touch: init at 0-unstable-2021-03-19 --- pkgs/by-name/wf/wf-touch/package.nix | 59 ++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 pkgs/by-name/wf/wf-touch/package.nix diff --git a/pkgs/by-name/wf/wf-touch/package.nix b/pkgs/by-name/wf/wf-touch/package.nix new file mode 100644 index 000000000000..2c32f563db2d --- /dev/null +++ b/pkgs/by-name/wf/wf-touch/package.nix @@ -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; + }; +}