1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +00:00
nixpkgs/pkgs/tools/X11/xcape/default.nix
2013-07-30 16:02:39 +04:00

32 lines
879 B
Nix

{stdenv, fetchurl, fetchgit, libX11, xproto, libXtst, xextproto, pkgconfig
, inputproto, libXi}:
let
s = rec {
baseName = "xcape";
version = "git-2013-05-30";
name = "${baseName}-${version}";
};
buildInputs = [
libX11 libXtst xproto xextproto pkgconfig inputproto libXi
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchgit {
url = https://github.com/alols/xcape;
rev = "39aa08c5da354a8fe495eba8787a01957cfa5fcb";
sha256 = "1yh0vbaj4c5lflxm3d4xrfaric1lp0gfcyzq33bqphpsba439bmg";
};
preConfigure = ''
makeFlags="$makeFlags PREFIX=$out"
'';
meta = {
inherit (s) version;
description = ''A tool to have Escape and Control on a single key'';
license = stdenv.lib.licenses.gpl3 ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
};
}