Add selendroid
This commit is contained in:
parent
97dfbdd708
commit
e90a1728a3
36
pkgs/development/tools/selenium/selendroid/default.nix
Normal file
36
pkgs/development/tools/selenium/selendroid/default.nix
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
{ stdenv, fetchurl, makeWrapper, jdk, selenium-server-standalone }:
|
||||||
|
|
||||||
|
with stdenv.lib;
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
name = "selendroid-standalone-${version}";
|
||||||
|
version = "0.11.0";
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "https://github.com/selendroid/selendroid/releases/download/${version}/selendroid-standalone-${version}-with-dependencies.jar";
|
||||||
|
sha256 = "1p6k974pr2634q1g65wx243cxdqhac63x8w2gsmh6vnni0818clk";
|
||||||
|
};
|
||||||
|
|
||||||
|
unpackPhase = "true";
|
||||||
|
|
||||||
|
buildInputs = [ jdk makeWrapper ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/share/lib/selendroid
|
||||||
|
cp $src $out/share/lib/selendroid/${name}.jar
|
||||||
|
makeWrapper ${jdk}/bin/java $out/bin/selendroid \
|
||||||
|
--add-flags "-jar $out/share/lib/selendroid/${name}.jar"
|
||||||
|
makeWrapper ${jdk}/bin/java $out/bin/selendroid-selenium \
|
||||||
|
--add-flags "-Dfile.encoding=UTF-8" \
|
||||||
|
--add-flags "-cp \"$out/share/lib/selendroid/${name}.jar:${selenium-server-standalone}/share/lib/${selenium-server-standalone.name}/${selenium-server-standalone.name}.jar\"" \
|
||||||
|
--add-flags "org.openqa.grid.selenium.GridLauncher"
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = https://code.google.com/p/selenium;
|
||||||
|
description = "Test automation for native or hybrid Android apps and the mobile web.";
|
||||||
|
maintainers = with maintainers; [ offline ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
license = licenses.asl20;
|
||||||
|
};
|
||||||
|
}
|
@ -4669,6 +4669,8 @@ let
|
|||||||
|
|
||||||
selenium-server-standalone = callPackage ../development/tools/selenium/server { };
|
selenium-server-standalone = callPackage ../development/tools/selenium/server { };
|
||||||
|
|
||||||
|
selendroid = callPackage ../development/tools/selenium/selendroid { };
|
||||||
|
|
||||||
scons = callPackage ../development/tools/build-managers/scons { };
|
scons = callPackage ../development/tools/build-managers/scons { };
|
||||||
|
|
||||||
sbt = callPackage ../development/tools/build-managers/sbt { };
|
sbt = callPackage ../development/tools/build-managers/sbt { };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user