nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 48 lines 1.2 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 fetchpatch, 6 libX11, 7}: 8stdenv.mkDerivation { 9 pname = "wayv"; 10 version = "0.3"; 11 12 src = fetchFromGitHub { 13 owner = "mikemb"; 14 repo = "wayv"; 15 rev = "b716877603250f690f08b593bf30fd5e8a93a872"; 16 sha256 = "046dvaq6na1fyxz5nrjg13aaz6ific9wbygck0dknqqfmmjrsv3b"; 17 }; 18 19 patches = [ 20 # Pull patch pending upstream inclusion for -fno-common toolchain support: 21 # https://github.com/mikemb/wayV/pull/1 22 (fetchpatch { 23 name = "fno-common.patch"; 24 url = "https://github.com/mikemb/wayV/commit/b927793e2a2c92ff1f97b9df9e58c26e73e72012.patch"; 25 sha256 = "19i10966b0n710dic64p5ajsllkjnz16bp0crxfy9vv08hj1xygi"; 26 }) 27 ]; 28 29 buildInputs = [ libX11 ]; 30 31 postInstall = '' 32 make -C doc install 33 mkdir -p "$out"/share/doc/wayv 34 cp [A-Z][A-Z]* "$out"/share/doc/wayv 35 cp doc/[A-Z][A-Z]* "$out"/share/doc/wayv 36 cp doc/*.txt "$out"/share/doc/wayv 37 cp doc/*.jpg "$out"/share/doc/wayv 38 ''; 39 40 meta = { 41 description = "Gesture control for X11"; 42 license = lib.licenses.gpl2Plus; 43 maintainers = [ lib.maintainers.raskin ]; 44 platforms = lib.platforms.linux; 45 homepage = "https://github.com/mikemb/wayV"; 46 mainProgram = "wayv"; 47 }; 48}