nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 40 lines 1.1 kB view raw
1{ 2 fetchurl, 3 lib, 4 stdenv, 5}: 6 7stdenv.mkDerivation (finalAttrs: { 8 pname = "actkbd"; 9 version = "0.2.8"; 10 11 src = fetchurl { 12 url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/actkbd-${finalAttrs.version}.tar.bz2"; 13 sha256 = "1ipb7k5q7k7p54is96ij2n74jfa6xc0llb9lpjwxhsqviqxn9slm"; 14 }; 15 16 preConfigure = '' 17 substituteInPlace Makefile \ 18 --replace /usr/local $out \ 19 --replace /etc $out/etc 20 ''; 21 22 postInstall = '' 23 mkdir -p $out/share/doc/actkbd 24 cp -r README samples $out/share/doc/actkbd 25 ''; 26 27 meta = { 28 description = "Keyboard shortcut daemon"; 29 longDescription = '' 30 actkbd is a simple daemon that binds actions to keyboard events 31 directly on evdev interface (that is, no X11 required). It 32 recognises key combinations and can handle press, repeat and 33 release events. 34 ''; 35 license = lib.licenses.gpl2Only; 36 homepage = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/"; 37 platforms = lib.platforms.linux; 38 mainProgram = "actkbd"; 39 }; 40})