From 451de09f513aca784837902082729e4cc8eca4ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 8 Jun 2017 12:10:44 +0100 Subject: [PATCH] autorandr: fix python shebang --- pkgs/tools/misc/autorandr/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/autorandr/default.nix b/pkgs/tools/misc/autorandr/default.nix index 8b0885eee07..b885b5ed09d 100644 --- a/pkgs/tools/misc/autorandr/default.nix +++ b/pkgs/tools/misc/autorandr/default.nix @@ -11,13 +11,11 @@ in stdenv.mkDerivation { name = "autorandr-${version}"; - buildInputs = [ python wrapPython ]; - - phases = [ "unpackPhase" "installPhase" ]; + buildInputs = [ python ]; installPhase = '' + runHook preInstall make install TARGETS='autorandr' PREFIX=$out - wrapPythonProgramsIn $out/bin/autorandr $out make install TARGETS='bash_completion' DESTDIR=$out @@ -35,6 +33,7 @@ in make install TARGETS='udev' PREFIX=$out DESTDIR=$out \ UDEV_RULES_DIR=/etc/udev/rules.d ''} + runHook postInstall ''; src = fetchFromGitHub {