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:
Tobias Geerinckx-Rice 2016-06-23 12:10:44 +02:00
parent 6669fac77e
commit a055152963
No known key found for this signature in database
GPG Key ID: 91CCDB9B48541B99

View File

@ -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 \