1 { lib, stdenv, fetchFromGitHub, autoconf, automake, which, procps, kbd }:
5 version = "2018-01-22";
7 src = fetchFromGitHub {
10 rev = "7a9f19fb6b152d9f00a0b3fe29ab266ff1f88129";
11 sha256 = "1k6kj0913imwh53lh6hrhqmrpygqg2h462raafjsn7gbd3vkgx8n";
14 nativeBuildInputs = [ autoconf automake ];
15 buildInputs = [ which procps kbd ];
18 substituteInPlace src/Makefile.am --replace 'root' '$(id -u)'
19 substituteInPlace configure.ac --replace '/dev/input' '/tmp'
20 sed -i '/chmod u+s/d' src/Makefile.am
23 preConfigure = "./autogen.sh";
26 description = "GNU/Linux keylogger that works";
27 license = licenses.gpl3;
28 homepage = "https://github.com/kernc/logkeys";
29 maintainers = with maintainers; [mikoim offline];
30 platforms = platforms.linux;