nixpkgs/pkgs/tools/security/logkeys/default.nix

31 lines
881 B
Nix
Raw Normal View History

2017-12-04 17:14:47 +00:00
{ stdenv, fetchgit, autoconf, automake, which, procps, kbd }:
stdenv.mkDerivation rec {
name = "logkeys-${version}";
2017-12-04 17:14:47 +00:00
version = "2017-10-10";
src = fetchgit {
url = https://github.com/kernc/logkeys;
2017-12-04 17:14:47 +00:00
rev = "5c368327a2cd818efaed4794633c260b90b87abf";
sha256 = "0akj7j775y9c0p53zq5v12jk3fy030fpdvn5m1x9w4rdj47vxdpg";
};
2017-12-04 17:14:47 +00:00
buildInputs = [ autoconf automake which procps kbd ];
postPatch = ''
2017-12-04 17:14:47 +00:00
substituteInPlace src/Makefile.am --replace 'root' '$(id -u)'
substituteInPlace configure.ac --replace '/dev/input' '/tmp'
sed -i '/chmod u+s/d' src/Makefile.am
'';
2017-12-04 17:14:47 +00:00
preConfigure = "./autogen.sh";
meta = with stdenv.lib; {
description = "A GNU/Linux keylogger that works!";
license = licenses.gpl3;
homepage = https://github.com/kernc/logkeys;
2017-12-04 17:14:47 +00:00
maintainers = with maintainers; [mikoim offline];
platforms = platforms.linux;
};
}