nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 48 lines 932 B view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 pkg-config, 6 xorgserver, 7 xorgproto, 8 utilmacros, 9 libgestures, 10 libevdevc, 11}: 12 13stdenv.mkDerivation rec { 14 pname = "xf86-input-cmt"; 15 version = "2.0.2"; 16 src = fetchFromGitHub { 17 owner = "hugegreenbug"; 18 repo = "xf86-input-cmt"; 19 rev = "v${version}"; 20 sha256 = "1cnwf518nc0ybc1r3rsgc1gcql1k3785khffv0i4v3akrm9wdw98"; 21 }; 22 23 postPatch = '' 24 patchShebangs ./apply_patches.sh 25 ./apply_patches.sh 26 ''; 27 28 nativeBuildInputs = [ pkg-config ]; 29 buildInputs = [ 30 xorgserver 31 xorgproto 32 utilmacros 33 libgestures 34 libevdevc 35 ]; 36 37 configureFlags = [ 38 "--with-sdkdir=${placeholder "out"}" 39 ]; 40 41 meta = with lib; { 42 description = "Chromebook touchpad driver"; 43 license = licenses.bsd3; 44 platforms = platforms.linux; 45 homepage = "https://www.github.com/hugegreenbug/xf86-input-cmt"; 46 maintainers = with maintainers; [ kcalvinalvin ]; 47 }; 48}