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 ```
This commit is contained in:
parent
6669fac77e
commit
a055152963
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user