Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 51 lines 1.1 kB view raw
1{ 2 stdenv, 3 lib, 4 fetchFromGitHub, 5 fetchpatch, 6 pkg-config, 7 cmake, 8 libinput, 9 zlib, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "gebaar-libinput"; 14 version = "0.0.5"; 15 16 src = fetchFromGitHub { 17 owner = "Coffee2CodeNL"; 18 repo = "gebaar-libinput"; 19 rev = "v${version}"; 20 sha256 = "1kqcgwkia1p195xr082838dvj1gqif9d63i8a52jb0lc32zzizh6"; 21 fetchSubmodules = true; 22 }; 23 24 patches = [ 25 # fix build with gcc 11+ 26 (fetchpatch { 27 url = "https://github.com/9ary/gebaar-libinput-fork/commit/25cac08a5f1aed1951b03de12fa0010a0964967d.patch"; 28 hash = "sha256-CtgfMTBCXotiPAXc7cA3h+7Kb0NHFi/q7w72IY32CyA="; 29 }) 30 ]; 31 32 nativeBuildInputs = [ 33 pkg-config 34 cmake 35 ]; 36 buildInputs = [ 37 libinput 38 zlib 39 ]; 40 41 meta = with lib; { 42 description = "Gebaar, A Super Simple WM Independent Touchpad Gesture Daemon for libinput"; 43 mainProgram = "gebaard"; 44 homepage = "https://github.com/Coffee2CodeNL/gebaar-libinput"; 45 license = licenses.gpl3; 46 platforms = platforms.linux; 47 maintainers = with maintainers; [ 48 lovesegfault 49 ]; 50 }; 51}