about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/tools/selenium/htmlunit-driver/default.nix
blob: be3048cca25bf7ba16496a89ac055087621eae1e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, stdenv, fetchurl }:

with lib;

stdenv.mkDerivation rec {
  pname = "htmlunit-driver-standalone";
  version = "2.27";

  src = fetchurl {
    url = "https://github.com/SeleniumHQ/htmlunit-driver/releases/download/${version}/htmlunit-driver-${version}-with-dependencies.jar";
    sha256 = "1sd3cwpamcbq9pv0mvcm8x6minqrlb4i0r12q3jg91girqswm2dp";
  };

  dontUnpack = true;

  installPhase = "install -D $src $out/share/lib/${pname}-${version}/${pname}-${version}.jar";

  meta = {
    homepage = "https://github.com/SeleniumHQ/htmlunit-driver";
    description = "A WebDriver server for running Selenium tests on the HtmlUnit headless browser";
    maintainers = with maintainers; [ coconnor offline ];
    platforms = platforms.all;
    license = licenses.asl20;
  };
}