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
|
2018-12-08 11:24:26 +00:00
|
|
|
, stdenv
|
2021-04-13 14:05:07 +00:00
|
|
|
, Security
|
|
|
|
, libiconv
|
2017-11-03 03:24:43 +00:00
|
|
|
}:
|
|
|
|
|
2020-01-16 03:51:36 +00:00
|
|
|
rustPlatform.buildRustPackage {
|
2022-01-07 23:49:23 +00:00
|
|
|
version = "0.30.0";
|
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 {
|
2022-01-07 23:49:23 +00:00
|
|
|
url = "https://hg.mozilla.org/mozilla-central/archive/d372710b98a6ce5d1b2a9dffd53a879091c5c148.zip/testing";
|
|
|
|
sha256 = "0d27h9c8vw4rs9c2l9wms4lc931nbp2g5hacsh24zhc9y3v454i6";
|
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 ];
|
2022-01-07 23:49:23 +00:00
|
|
|
cargoSha256 = "08zcrhrmxh3c3iwd7kbnr19lfisikb779i2r7ir7b1i1ynmi4v6r";
|
2018-02-24 22:57:30 +00:00
|
|
|
|
2021-04-13 14:05:07 +00:00
|
|
|
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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/mozilla/geckodriver";
|
2017-11-03 03:24:43 +00:00
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ jraygauthier ];
|
|
|
|
};
|
|
|
|
}
|