2014-09-04 21:10:46 +04:00
|
|
|
{ stdenv, fetchgit, which, procps, kbd }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "logkeys-${version}";
|
2015-12-15 04:47:20 +03:00
|
|
|
version = "2015-11-10";
|
2014-09-04 21:10:46 +04:00
|
|
|
|
|
|
|
src = fetchgit {
|
2015-08-15 13:36:33 +03:00
|
|
|
url = https://github.com/kernc/logkeys;
|
2015-12-15 04:47:20 +03:00
|
|
|
rev = "78321c6e70f61c1e7e672fa82daa664017c9e69d";
|
|
|
|
sha256 = "1b1fa1rblyfsg6avqyls03y0rq0favipn5fha770rsirzg4r637q";
|
2014-09-04 21:10:46 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ which procps kbd ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace src/Makefile.in --replace 'root' '$(id -u)'
|
|
|
|
substituteInPlace configure --replace '/dev/input' '/tmp'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A GNU/Linux keylogger that works!";
|
|
|
|
license = licenses.gpl3;
|
2015-08-15 13:36:33 +03:00
|
|
|
homepage = https://github.com/kernc/logkeys;
|
2014-09-04 21:10:46 +04:00
|
|
|
maintainers = with maintainers; [offline];
|
2015-11-17 23:29:29 +03:00
|
|
|
platforms = platforms.linux;
|
2014-09-04 21:10:46 +04:00
|
|
|
};
|
|
|
|
}
|