at 18.03-beta 30 lines 881 B view raw
1{ stdenv, fetchgit, autoconf, automake, which, procps, kbd }: 2 3stdenv.mkDerivation rec { 4 name = "logkeys-${version}"; 5 version = "2017-10-10"; 6 7 src = fetchgit { 8 url = https://github.com/kernc/logkeys; 9 rev = "5c368327a2cd818efaed4794633c260b90b87abf"; 10 sha256 = "0akj7j775y9c0p53zq5v12jk3fy030fpdvn5m1x9w4rdj47vxdpg"; 11 }; 12 13 buildInputs = [ autoconf automake which procps kbd ]; 14 15 postPatch = '' 16 substituteInPlace src/Makefile.am --replace 'root' '$(id -u)' 17 substituteInPlace configure.ac --replace '/dev/input' '/tmp' 18 sed -i '/chmod u+s/d' src/Makefile.am 19 ''; 20 21 preConfigure = "./autogen.sh"; 22 23 meta = with stdenv.lib; { 24 description = "A GNU/Linux keylogger that works!"; 25 license = licenses.gpl3; 26 homepage = https://github.com/kernc/logkeys; 27 maintainers = with maintainers; [mikoim offline]; 28 platforms = platforms.linux; 29 }; 30}