My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/tools/geckodriver/default.nix

35 lines
1.1 KiB

{ lib
, fetchzip
, rustPlatform
, stdenv
, Security
, libiconv
}:
rustPlatform.buildRustPackage {
version = "0.30.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";
});
cargoPatches = [ ./cargo-lock.patch ];
cargoSha256 = "08zcrhrmxh3c3iwd7kbnr19lfisikb779i2r7ir7b1i1ynmi4v6r";
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
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 ];
};
}