3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/geckodriver/default.nix

35 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
, darwin
2017-11-03 03:24:43 +00:00
}:
2020-01-16 03:51:36 +00:00
rustPlatform.buildRustPackage {
version = "0.26.0";
2019-08-31 12:41:23 +01: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/e9783a644016aa9b317887076618425586730d73.zip/testing";
sha256 = "0m86hqyq1jrr49jkc8mnlmx4bdq281hyxhcrrzacyv20nlqwvd8v";
}).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 = "07w5lmvm5w6id0qikcs968n0c69bb6fav63l66bskxcjva67d6dy";
2020-01-16 03:51:36 +00:00
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.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;
license = licenses.mpl20;
maintainers = with maintainers; [ jraygauthier ];
};
}