about summary refs log tree commit diff
path: root/pkgs/tools/security/logkeys
diff options
context:
space:
mode:
authorEshin Kunishima <ek@esh.ink>2017-12-05 02:14:47 +0900
committerRobert Helgesson <robert@rycee.net>2017-12-06 12:37:16 +0100
commitf9a5cacae7372af280e9c2098d2b9be1f9378637 (patch)
treefcb9860f61980f82d7557ced2e1138140b0e4013 /pkgs/tools/security/logkeys
parent9b08b87f4de15ca690248d0446521246b0852925 (diff)
logkeys: 2015-11-10 -> 2017-10-10
Diffstat (limited to 'pkgs/tools/security/logkeys')
-rw-r--r--pkgs/tools/security/logkeys/default.nix20
1 files changed, 11 insertions, 9 deletions
diff --git a/pkgs/tools/security/logkeys/default.nix b/pkgs/tools/security/logkeys/default.nix
index 2d58bcc9a230c..e30ad30a4dc1c 100644
--- a/pkgs/tools/security/logkeys/default.nix
+++ b/pkgs/tools/security/logkeys/default.nix
@@ -1,28 +1,30 @@
-{ stdenv, fetchgit, which, procps, kbd }:
+{ stdenv, fetchgit, autoconf, automake, which, procps, kbd }:
 
 stdenv.mkDerivation rec {
   name = "logkeys-${version}";
-  version = "2015-11-10";
+  version = "2017-10-10";
 
   src = fetchgit {
     url = https://github.com/kernc/logkeys;
-    rev = "78321c6e70f61c1e7e672fa82daa664017c9e69d";
-    sha256 = "1b1fa1rblyfsg6avqyls03y0rq0favipn5fha770rsirzg4r637q";
+    rev = "5c368327a2cd818efaed4794633c260b90b87abf";
+    sha256 = "0akj7j775y9c0p53zq5v12jk3fy030fpdvn5m1x9w4rdj47vxdpg";
   };
 
-  buildInputs = [ which procps kbd ];
+  buildInputs = [ autoconf automake which procps kbd ];
 
   postPatch = ''
-    substituteInPlace src/Makefile.in --replace 'root' '$(id -u)'
-    substituteInPlace configure --replace '/dev/input' '/tmp'
-    sed -i '/chmod u+s/d' src/Makefile.in
+    substituteInPlace src/Makefile.am --replace 'root' '$(id -u)'
+    substituteInPlace configure.ac --replace '/dev/input' '/tmp'
+    sed -i '/chmod u+s/d' src/Makefile.am
  '';
 
+  preConfigure = "./autogen.sh";
+
   meta = with stdenv.lib; {
     description = "A GNU/Linux keylogger that works!";
     license = licenses.gpl3;
     homepage = https://github.com/kernc/logkeys;
-    maintainers = with maintainers; [offline];
+    maintainers = with maintainers; [mikoim offline];
     platforms = platforms.linux;
   };
 }