2017-11-02 20:24:43 -07:00
|
|
|
{ lib
|
2020-01-15 19:51:36 -08:00
|
|
|
, fetchzip
|
2017-11-02 20:24:43 -07:00
|
|
|
, rustPlatform
|
2018-12-08 03:24:26 -08:00
|
|
|
, stdenv
|
|
|
|
, darwin
|
2017-11-02 20:24:43 -07:00
|
|
|
}:
|
|
|
|
|
2020-01-15 19:51:36 -08:00
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
version = "0.26.0";
|
2019-08-31 04:41:23 -07:00
|
|
|
pname = "geckodriver";
|
2020-01-15 19:51:36 -08:00
|
|
|
sourceRoot = "source/testing/geckodriver";
|
2017-11-02 20:24:43 -07:00
|
|
|
|
2020-01-15 19:51:36 -08: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-02 20:24:43 -07:00
|
|
|
|
2020-01-15 19:51:36 -08:00
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
2020-03-08 18:11:51 -07:00
|
|
|
cargoSha256 = "1dv8vcjy8r9z19grj4gms05bhaafyr42y3q69h3azwq6dmacfd3y";
|
2018-02-24 14:57:30 -08:00
|
|
|
|
2020-01-15 19:51:36 -08:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
2017-11-02 20:24:43 -07:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/mozilla/geckodriver";
|
2017-11-02 20:24:43 -07:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ jraygauthier ];
|
|
|
|
};
|
|
|
|
}
|