about summary refs log tree commit diff
path: root/pkgs/development/tools/sauce-connect
diff options
context:
space:
mode:
authorMathias Schreck <schreck.mathias@googlemail.com>2016-09-17 19:48:23 +0200
committerMathias Schreck <schreck.mathias@googlemail.com>2016-09-17 19:49:01 +0200
commit7e7a54aba065e9f0097879a9994a46b7ea8a5676 (patch)
treee30d56914d432a9c2c2f228687a1bf493d40195e /pkgs/development/tools/sauce-connect
parent50111d5cf4b17bc0f9682e72540212f3f3423b3c (diff)
sauce-connect: refactor patchPhase instead of reordering phases
Diffstat (limited to 'pkgs/development/tools/sauce-connect')
-rw-r--r--pkgs/development/tools/sauce-connect/default.nix5
1 files changed, 1 insertions, 4 deletions
diff --git a/pkgs/development/tools/sauce-connect/default.nix b/pkgs/development/tools/sauce-connect/default.nix
index 2974bbed6d88f..d573a6c5b60c4 100644
--- a/pkgs/development/tools/sauce-connect/default.nix
+++ b/pkgs/development/tools/sauce-connect/default.nix
@@ -20,11 +20,8 @@ stdenv.mkDerivation rec {
   );
 
   buildInputs = [ unzip ];
-  phases = [ "unpackPhase" ]
-   ++ (lib.optionals (stdenv.system != "x86_64-darwin") [ "patchPhase" ])
-   ++ [ "installPhase " ];
 
-  patchPhase = ''
+  patchPhase = stdenv.lib.optionalString stdenv.isLinux ''
     patchelf \
       --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
       --set-rpath "$out/lib:${makeLibraryPath [zlib]}" \