nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 fetchpatch,
6 pkg-config,
7 meson,
8 cmake,
9 ninja,
10 glm,
11 doctest,
12 unstableGitUpdater,
13}:
14
15stdenv.mkDerivation {
16 pname = "wf-touch";
17 version = "0-unstable-2021-03-19";
18
19 src = fetchFromGitHub {
20 owner = "WayfireWM";
21 repo = "wf-touch";
22 rev = "8974eb0f6a65464b63dd03b842795cb441fb6403";
23 hash = "sha256-MjsYeKWL16vMKETtKM5xWXszlYUOEk3ghwYI85Lv4SE=";
24 };
25
26 nativeBuildInputs = [
27 meson
28 pkg-config
29 cmake
30 ninja
31 ];
32
33 buildInputs = [ doctest ];
34
35 propagatedBuildInputs = [ glm ];
36
37 mesonBuildType = "release";
38
39 # Patch wf-touch to generate pkgconfig
40 patches = fetchpatch {
41 url = "https://raw.githubusercontent.com/horriblename/hyprgrass/736119f828eecaed2deaae1d6ff1f50d6dabaaba/nix/wf-touch.patch";
42 hash = "sha256-3YK5YnO0NCwshs1reJFjJ9tIEhTNSS0fPWUDFo3XA3s=";
43 };
44
45 outputs = [
46 "out"
47 "dev"
48 ];
49
50 passthru.updateScript = unstableGitUpdater { };
51
52 meta = {
53 description = "Touchscreen gesture library";
54 homepage = "https://github.com/WayfireWM/wf-touch";
55 license = lib.licenses.mit;
56 maintainers = with lib.maintainers; [ donovanglover ];
57 platforms = lib.platforms.unix;
58 };
59}