geckodriver: update to 0.31.0 (#194839)

This commit is contained in:
Tom McLaughlin 2022-10-06 20:17:32 -06:00 committed by GitHub
parent a52b6af8f2
commit 17c3b5b2ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1470 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,28 +1,23 @@
{ lib
, fetchzip
, fetchFromGitHub
, rustPlatform
, stdenv
, Security
, libiconv
}:
rustPlatform.buildRustPackage {
version = "0.30.0";
rustPlatform.buildRustPackage rec {
version = "0.31.0";
pname = "geckodriver";
sourceRoot = "source/testing/geckodriver";
# Source revisions are noted alongside the binary releases:
# https://github.com/mozilla/geckodriver/releases
src = (fetchzip {
url = "https://hg.mozilla.org/mozilla-central/archive/d372710b98a6ce5d1b2a9dffd53a879091c5c148.zip/testing";
sha256 = "0d27h9c8vw4rs9c2l9wms4lc931nbp2g5hacsh24zhc9y3v454i6";
}).overrideAttrs (_: {
# normally guessed by the url's file extension, force it to unpack properly
unpackCmd = "unzip $curSrc";
});
src = fetchFromGitHub {
owner = "mozilla";
repo = "geckodriver";
rev = "refs/tags/v${version}";
sha256 = "sha256-sUu1D3HAxUTQFas4ylQ9LYC0dcKPyljoU+keENg17os=";
};
cargoPatches = [ ./cargo-lock.patch ];
cargoSha256 = "08zcrhrmxh3c3iwd7kbnr19lfisikb779i2r7ir7b1i1ynmi4v6r";
cargoSha256 = "sha256-alwsxC1xDAAhqMTkgmUO4iDDUAK0lisXn3Yxgo7ZBhg=";
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];