sauce-connect: refactor patchPhase instead of reordering phases

This commit is contained in:
Mathias Schreck 2016-09-17 19:48:23 +02:00
parent 50111d5cf4
commit 7e7a54aba0
1 changed files with 1 additions and 4 deletions

View File

@ -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]}" \