tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
sauce-connect: 4.3.6 -> 4.3.13
Tobias Pflug
10 years ago
93aea6ec
e053971d
+10
-4
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
sauce-connect
default.nix
+10
-4
pkgs/development/tools/sauce-connect/default.nix
···
1
-
{ stdenv, lib, fetchurl, zlib }:
2
3
with lib;
4
5
stdenv.mkDerivation rec {
6
name = "sauce-connect-${version}";
7
-
version = "4.3.6";
8
9
src = fetchurl (
10
if stdenv.system == "x86_64-linux" then {
11
url = "https://saucelabs.com/downloads/sc-${version}-linux.tar.gz";
12
sha1 = "0d7d2dc12766ac137e62a3e4dad3025b590f9782";
13
-
} else {
14
url = "https://saucelabs.com/downloads/sc-${version}-linux32.tar.gz";
15
sha1 = "ee2c3002eae3b29df801a2ac1db77bb5f1c97bcc";
0
0
0
16
}
17
);
0
0
0
18
19
patchPhase = ''
20
patchelf \
···
35
license = licenses.unfree;
36
homepage = https://docs.saucelabs.com/reference/sauce-connect/;
37
maintainers = with maintainers; [offline];
38
-
platforms = platforms.linux;
39
};
40
}
···
1
+
{ stdenv, lib, fetchurl, zlib, unzip }:
2
3
with lib;
4
5
stdenv.mkDerivation rec {
6
name = "sauce-connect-${version}";
7
+
version = "4.3.13";
8
9
src = fetchurl (
10
if stdenv.system == "x86_64-linux" then {
11
url = "https://saucelabs.com/downloads/sc-${version}-linux.tar.gz";
12
sha1 = "0d7d2dc12766ac137e62a3e4dad3025b590f9782";
13
+
} else if stdenv.system == "i686-linux" then {
14
url = "https://saucelabs.com/downloads/sc-${version}-linux32.tar.gz";
15
sha1 = "ee2c3002eae3b29df801a2ac1db77bb5f1c97bcc";
16
+
} else {
17
+
url = "https://saucelabs.com/downloads/sc-${version}-osx.zip";
18
+
sha1 = "ihr4ynnyi464pafgqyl5xkhfi13yi76j";
19
}
20
);
21
+
22
+
buildInputs = [ unzip ];
23
+
phases = "unpackPhase installPhase" + (if stdenv.system == "x86_64-darwin" then "" else "patchPhase");
24
25
patchPhase = ''
26
patchelf \
···
41
license = licenses.unfree;
42
homepage = https://docs.saucelabs.com/reference/sauce-connect/;
43
maintainers = with maintainers; [offline];
44
+
platforms = platforms.linux ++ platforms.darwin;
45
};
46
}