From a0551529633fc2228484c4890cd96247f30f7dfa Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Thu, 23 Jun 2016 12:10:44 +0200 Subject: [PATCH] sauce-connect: listify phases and run in correct order patchPhase was being run after installPhase, causing patchelf to be run on the left-behind binary instead of the copy in $out. Fixes: ``` $ .../bin/sc bash: .../bin/sc: No such file or directory $ patchelf --print-interpreter .../bin/sc /lib64/ld-linux-x86-64.so.2 ``` --- pkgs/development/tools/sauce-connect/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/sauce-connect/default.nix b/pkgs/development/tools/sauce-connect/default.nix index 6b6d5b14397..e93006b89ce 100644 --- a/pkgs/development/tools/sauce-connect/default.nix +++ b/pkgs/development/tools/sauce-connect/default.nix @@ -20,7 +20,9 @@ stdenv.mkDerivation rec { ); buildInputs = [ unzip ]; - phases = "unpackPhase installPhase " + (if stdenv.system == "x86_64-darwin" then "" else "patchPhase"); + phases = [ "unpackPhase" ] + ++ (lib.optionals (stdenv.system != "x86_64-darwin") [ "patchPhase" ]) + ++ [ "installPhase " ]; patchPhase = '' patchelf \