python312Packages.tensordict: disable flaky test_map_iter_interrupt_early on all...
[NixPkgs.git] / pkgs / by-name / lo / logkeys / package.nix
blobed3180fd7e460bb68c3b7404a939a7cc028e193a
1 { lib, stdenv, fetchFromGitHub, autoconf, automake, which, procps, kbd }:
3 stdenv.mkDerivation {
4   pname = "logkeys";
5   version = "2018-01-22";
7   src = fetchFromGitHub {
8     owner = "kernc";
9     repo = "logkeys";
10     rev = "7a9f19fb6b152d9f00a0b3fe29ab266ff1f88129";
11     sha256 = "1k6kj0913imwh53lh6hrhqmrpygqg2h462raafjsn7gbd3vkgx8n";
12   };
14   nativeBuildInputs = [ autoconf automake ];
15   buildInputs = [ which procps kbd ];
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  '';
23   preConfigure = "./autogen.sh";
25   meta = with lib; {
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;
31   };