sauce-connect: refactor patchPhase instead of reordering phases
This commit is contained in:
parent
50111d5cf4
commit
7e7a54aba0
|
@ -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]}" \
|
||||
|
|
Loading…
Reference in New Issue