at 23.11-beta 32 lines 907 B view raw
1{ lib, stdenv, fetchFromGitHub, autoconf, automake, which, procps, kbd }: 2 3stdenv.mkDerivation { 4 pname = "logkeys"; 5 version = "2018-01-22"; 6 7 src = fetchFromGitHub { 8 owner = "kernc"; 9 repo = "logkeys"; 10 rev = "7a9f19fb6b152d9f00a0b3fe29ab266ff1f88129"; 11 sha256 = "1k6kj0913imwh53lh6hrhqmrpygqg2h462raafjsn7gbd3vkgx8n"; 12 }; 13 14 nativeBuildInputs = [ autoconf automake ]; 15 buildInputs = [ which procps kbd ]; 16 17 postPatch = '' 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 21 ''; 22 23 preConfigure = "./autogen.sh"; 24 25 meta = with lib; { 26 description = "A 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; 31 }; 32}