summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-08-28 14:02:22 +0000
committerRobin Gloster <mail@glob.in>2016-08-28 14:02:22 +0000
commitb46b0381b6c5555297093655e6f8a1b8f55e75e0 (patch)
treeb51bdc6121a17f921ea8d88603f8edb4e224091f /pkgs/tools/system
parent92d929c8845074da598bbf47ecea72d70b16998e (diff)
downloadnixlib-b46b0381b6c5555297093655e6f8a1b8f55e75e0.tar
nixlib-b46b0381b6c5555297093655e6f8a1b8f55e75e0.tar.gz
nixlib-b46b0381b6c5555297093655e6f8a1b8f55e75e0.tar.bz2
nixlib-b46b0381b6c5555297093655e6f8a1b8f55e75e0.tar.lz
nixlib-b46b0381b6c5555297093655e6f8a1b8f55e75e0.tar.xz
nixlib-b46b0381b6c5555297093655e6f8a1b8f55e75e0.tar.zst
nixlib-b46b0381b6c5555297093655e6f8a1b8f55e75e0.zip
evemu: remove obsolete substituteInPlace and use autoreconfHook
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/evemu/default.nix15
1 files changed, 3 insertions, 12 deletions
diff --git a/pkgs/tools/system/evemu/default.nix b/pkgs/tools/system/evemu/default.nix
index 2a2340a21525..873abd4812cb 100644
--- a/pkgs/tools/system/evemu/default.nix
+++ b/pkgs/tools/system/evemu/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchgit, automake, autoconf, libtool, pkgconfig, pythonPackages
+{ stdenv, fetchgit, autoreconfHook, pkgconfig, pythonPackages
 , libevdev, linuxHeaders
 }:
 
@@ -14,18 +14,9 @@ stdenv.mkDerivation rec {
     sha256 = "07iha13xrpf4z59rzl9cm2h1zkc5xhyipbd3ajd3c1d4hhpn9w9s";
   };
 
-  buildInputs = [
-    automake autoconf libtool pkgconfig pythonPackages.python
-    pythonPackages.evdev libevdev
-  ];
+  nativeBuildInputs = [ pkgconfig autoreconfHook ];
 
-  preConfigure = ''
-    ./autogen.sh --prefix=$out
-  '';
-
-  postPatch = ''
-    substituteInPlace src/make-event-names.py --replace "/usr/include/linux/input.h" "${linuxHeaders}/include/linux/input.h"
-  '';
+  buildInputs = [ pythonPackages.python pythonPackages.evdev libevdev ];
 
   meta = with stdenv.lib; {
     description = "Records and replays device descriptions and events to emulate input devices through the kernel's input system";