uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
42
pkgs/development/tools/selenium/server/default.nix
Normal file
42
pkgs/development/tools/selenium/server/default.nix
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
{ lib, stdenv, fetchurl, makeWrapper, jre
|
||||
, htmlunit-driver, chromedriver, chromeSupport ? true }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
minorVersion = "3.141";
|
||||
patchVersion = "59";
|
||||
|
||||
in stdenv.mkDerivation rec {
|
||||
pname = "selenium-server-standalone";
|
||||
version = "${minorVersion}.${patchVersion}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://selenium-release.storage.googleapis.com/${minorVersion}/selenium-server-standalone-${version}.jar";
|
||||
sha256 = "1jzkx0ahsb27zzzfvjqv660x9fz2pbcddgmhdzdmasxns5vipxxc";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ jre ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/share/lib/${pname}-${version}
|
||||
cp $src $out/share/lib/${pname}-${version}/${pname}-${version}.jar
|
||||
makeWrapper ${jre}/bin/java $out/bin/selenium-server \
|
||||
--add-flags "-cp $out/share/lib/${pname}-${version}/${pname}-${version}.jar:${htmlunit-driver}/share/lib/${htmlunit-driver.name}/${htmlunit-driver.name}.jar" \
|
||||
${optionalString chromeSupport "--add-flags -Dwebdriver.chrome.driver=${chromedriver}/bin/chromedriver"} \
|
||||
--add-flags "org.openqa.grid.selenium.GridLauncherV3"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.seleniumhq.org/";
|
||||
description = "Selenium Server for remote WebDriver";
|
||||
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ coconnor offline ];
|
||||
mainProgram = "selenium-server";
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue