1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

Add sauce-connect, sauce labs secure tunnel

This commit is contained in:
Jaka Hudoklin 2015-02-02 14:51:38 +01:00 committed by Rok Garbas
parent d255d41678
commit 4150a5eaf7
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ stdenv, lib, fetchurl, zlib }:
with lib;
stdenv.mkDerivation rec {
name = "sauce-connect-${version}";
version = "4.3.6";
src = fetchurl (
if stdenv.system == "x86_64-linux" then {
url = "https://saucelabs.com/downloads/sc-${version}-linux.tar.gz";
sha1 = "0d7d2dc12766ac137e62a3e4dad3025b590f9782";
} else {
url = "https://saucelabs.com/downloads/sc-${version}-linux32.tar.gz";
sha1 = "ee2c3002eae3b29df801a2ac1db77bb5f1c97bcc";
}
);
patchPhase = ''
patchelf \
--set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
--set-rpath "$out/lib:${makeLibraryPath [zlib]}" \
bin/sc
'';
installPhase = ''
mkdir -p $out
cp -r * $out
'';
dontStrip = true;
meta = {
description = "A secure tunneling app for executing tests securely when testing behind firewalls";
license = "unfree";
homepage = https://docs.saucelabs.com/reference/sauce-connect/;
maintainers = with maintainers; [offline];
platforms = with platforms; platforms.linux;
};
}

View file

@ -4994,6 +4994,8 @@ let
saleae-logic = callPackage ../development/tools/misc/saleae-logic { };
sauce-connect = callPackage ../development/tools/sauce-connect { };
# couldn't find the source yet
seleniumRCBin = callPackage ../development/tools/selenium/remote-control {
jre = jdk;