nixpkgs/pkgs/development/tools/geckodriver/default.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2017-11-03 03:24:43 +00:00
{ lib
2020-01-16 03:51:36 +00:00
, fetchzip
2017-11-03 03:24:43 +00:00
, rustPlatform
, stdenv
, Security
, libiconv
2017-11-03 03:24:43 +00:00
}:
2020-01-16 03:51:36 +00:00
rustPlatform.buildRustPackage {
version = "0.29.1";
2019-08-31 11:41:23 +00:00
pname = "geckodriver";
2020-01-16 03:51:36 +00:00
sourceRoot = "source/testing/geckodriver";
2017-11-03 03:24:43 +00:00
2020-01-16 03:51:36 +00:00
# Source revisions are noted alongside the binary releases:
# https://github.com/mozilla/geckodriver/releases
src = (fetchzip {
url = "https://hg.mozilla.org/mozilla-central/archive/970ef713fe58cbc8a29bfb2fb452a57e010bdb08.zip/testing";
sha256 = "0cpx0kx8asqkmz2nyanbmcvhnrsksgd6jp3wlcd0maid3qbyw7s2";
2020-01-16 03:51:36 +00:00
}).overrideAttrs (_: {
# normally guessed by the url's file extension, force it to unpack properly
unpackCmd = "unzip $curSrc";
});
2017-11-03 03:24:43 +00:00
2020-01-16 03:51:36 +00:00
cargoPatches = [ ./cargo-lock.patch ];
cargoSha256 = "1vajlcpyk77v6nvhs737yi8hs7ids9kz0sbwy29rm1vmmfjp2b27";
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
2017-11-03 03:24:43 +00:00
meta = with lib; {
description = "Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers";
homepage = "https://github.com/mozilla/geckodriver";
2017-11-03 03:24:43 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ jraygauthier ];
};
}