Merge pull request #13603 from gilligan/sauce-connect-fix

sauce-connect: fix hashes and build on linux
This commit is contained in:
joachifm 2016-03-01 21:54:12 +00:00
commit e948d69885

View File

@ -9,18 +9,18 @@ stdenv.mkDerivation rec {
src = fetchurl (
if stdenv.system == "x86_64-linux" then {
url = "https://saucelabs.com/downloads/sc-${version}-linux.tar.gz";
sha1 = "0d7d2dc12766ac137e62a3e4dad3025b590f9782";
sha256 = "1flhsssb7wvfbwyvhc9k2di3nd7dlq832xp6dg658xbqk7mr9rvw";
} else if stdenv.system == "i686-linux" then {
url = "https://saucelabs.com/downloads/sc-${version}-linux32.tar.gz";
sha1 = "ee2c3002eae3b29df801a2ac1db77bb5f1c97bcc";
sha256 = "1hy0riljgjf4sf4cg7kn0hd18w393bdwhp0ajyimzvscg05nx8fq";
} else {
url = "https://saucelabs.com/downloads/sc-${version}-osx.zip";
sha1 = "ihr4ynnyi464pafgqyl5xkhfi13yi76j";
sha256 = "1fhclbc79rk6pmf5qzc2pkz1z3nsawr9pfi5bzqs8r1514ki4m4p";
}
);
buildInputs = [ unzip ];
phases = "unpackPhase installPhase" + (if stdenv.system == "x86_64-darwin" then "" else "patchPhase");
phases = "unpackPhase installPhase " + (if stdenv.system == "x86_64-darwin" then "" else "patchPhase");
patchPhase = ''
patchelf \