From bba9d17e943540413fe4d1b47ede03ac7f74da04 Mon Sep 17 00:00:00 2001 From: Jan Malakhovski Date: Wed, 15 Apr 2015 17:46:51 +0000 Subject: [PATCH] actkbd: add version 0.2.8 --- pkgs/tools/system/actkbd/default.nix | 34 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/tools/system/actkbd/default.nix diff --git a/pkgs/tools/system/actkbd/default.nix b/pkgs/tools/system/actkbd/default.nix new file mode 100644 index 000000000000..706b3700a415 --- /dev/null +++ b/pkgs/tools/system/actkbd/default.nix @@ -0,0 +1,34 @@ +{ fetchurl, stdenv }: + +stdenv.mkDerivation rec { + name = "actkbd-0.2.8"; + + src = fetchurl { + url = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/files/${name}.tar.bz2"; + sha256 = "1ipb7k5q7k7p54is96ij2n74jfa6xc0llb9lpjwxhsqviqxn9slm"; + }; + + preConfigure = '' + substituteInPlace Makefile \ + --replace /usr/local $out \ + --replace /etc $out/etc + ''; + + postInstall = '' + mkdir -p $out/share/doc/actkbd + cp -r README samples $out/share/doc/actkbd + ''; + + meta = with stdenv.lib; { + description = "A keyboard shortcut daemon"; + longDescription = '' + actkbd is a simple daemon that binds actions to keyboard events + directly on evdev interface (that is, no X11 required). It + recognises key combinations and can handle press, repeat and + release events. + ''; + license = licenses.gpl2; + homepage = "http://users.softlab.ece.ntua.gr/~thkala/projects/actkbd/"; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8ee71adff23e..fc06961bd8d2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -475,6 +475,8 @@ let actdiag = pythonPackages.actdiag; + actkbd = callPackage ../tools/system/actkbd { }; + adom = callPackage ../games/adom { }; advancecomp = callPackage ../tools/compression/advancecomp {};