3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/security/logkeys/default.nix

29 lines
799 B
Nix
Raw Normal View History

{ stdenv, fetchgit, which, procps, kbd }:
stdenv.mkDerivation rec {
name = "logkeys-${version}";
2015-12-15 01:47:20 +00:00
version = "2015-11-10";
src = fetchgit {
url = https://github.com/kernc/logkeys;
2015-12-15 01:47:20 +00:00
rev = "78321c6e70f61c1e7e672fa82daa664017c9e69d";
sha256 = "1b1fa1rblyfsg6avqyls03y0rq0favipn5fha770rsirzg4r637q";
};
buildInputs = [ which procps kbd ];
postPatch = ''
substituteInPlace src/Makefile.in --replace 'root' '$(id -u)'
substituteInPlace configure --replace '/dev/input' '/tmp'
2017-06-16 12:51:16 +01:00
sed -i '/chmod u+s/d' src/Makefile.in
'';
meta = with stdenv.lib; {
description = "A GNU/Linux keylogger that works!";
license = licenses.gpl3;
homepage = https://github.com/kernc/logkeys;
maintainers = with maintainers; [offline];
platforms = platforms.linux;
};
}