2017-12-04 17:14:47 +00:00
|
|
|
{ stdenv, fetchgit, autoconf, automake, which, procps, kbd }:
|
2014-09-04 17:10:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "logkeys-${version}";
|
2017-12-04 17:14:47 +00:00
|
|
|
version = "2017-10-10";
|
2014-09-04 17:10:46 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
2015-08-15 10:36:33 +00:00
|
|
|
url = https://github.com/kernc/logkeys;
|
2017-12-04 17:14:47 +00:00
|
|
|
rev = "5c368327a2cd818efaed4794633c260b90b87abf";
|
|
|
|
sha256 = "0akj7j775y9c0p53zq5v12jk3fy030fpdvn5m1x9w4rdj47vxdpg";
|
2014-09-04 17:10:46 +00:00
|
|
|
};
|
|
|
|
|
2017-12-04 17:14:47 +00:00
|
|
|
buildInputs = [ autoconf automake which procps kbd ];
|
2014-09-04 17:10:46 +00:00
|
|
|
|
|
|
|
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
|
2014-09-04 17:10:46 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-04 17:14:47 +00:00
|
|
|
preConfigure = "./autogen.sh";
|
|
|
|
|
2014-09-04 17:10:46 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A GNU/Linux keylogger that works!";
|
|
|
|
license = licenses.gpl3;
|
2015-08-15 10:36:33 +00:00
|
|
|
homepage = https://github.com/kernc/logkeys;
|
2017-12-04 17:14:47 +00:00
|
|
|
maintainers = with maintainers; [mikoim offline];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2014-09-04 17:10:46 +00:00
|
|
|
};
|
|
|
|
}
|