2014-09-04 18:10:46 +01:00
|
|
|
{ stdenv, fetchgit, which, procps, kbd }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "logkeys-${version}";
|
|
|
|
version = "5ef6b0dcb9e3";
|
|
|
|
|
|
|
|
src = fetchgit {
|
2015-08-15 11:36:33 +01:00
|
|
|
url = https://github.com/kernc/logkeys;
|
2014-09-04 18:10:46 +01:00
|
|
|
rev = "5ef6b0dcb9e38e6137ad1579d624ec12107c56c3";
|
|
|
|
sha256 = "02p0l92l0fq069g31ks6xbqavzxa9njj9460vw2jsa7livcn2z9d";
|
|
|
|
};
|
|
|
|
|
|
|
|
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 11:36:33 +01:00
|
|
|
homepage = https://github.com/kernc/logkeys;
|
2014-09-04 18:10:46 +01:00
|
|
|
maintainers = with maintainers; [offline];
|
2015-11-17 20:29:29 +00:00
|
|
|
platforms = platforms.linux;
|
2014-09-04 18:10:46 +01:00
|
|
|
};
|
|
|
|
}
|