geckodriver: 0.22.0 -> 0.26.0

This commit is contained in:
arcnmx 2020-01-15 19:51:36 -08:00 committed by Alyssa Ross
parent 7869cd26b3
commit 19e37edc78
2 changed files with 1862 additions and 13 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,27 +1,30 @@
{ lib { lib
, fetchFromGitHub , fetchzip
, rustPlatform , rustPlatform
, stdenv , stdenv
, darwin , darwin
}: }:
with rustPlatform; rustPlatform.buildRustPackage {
version = "0.26.0";
buildRustPackage rec {
version = "0.22.0";
pname = "geckodriver"; pname = "geckodriver";
sourceRoot = "source/testing/geckodriver";
src = fetchFromGitHub { # Source revisions are noted alongside the binary releases:
owner = "mozilla"; # https://github.com/mozilla/geckodriver/releases
repo = "geckodriver"; src = (fetchzip {
rev = "v${version}"; url = "https://hg.mozilla.org/mozilla-central/archive/e9783a644016aa9b317887076618425586730d73.zip/testing";
sha256 = "12m95lfqwdxs2m5kjh3yrpm9w2li5m8n3fw46a2nkxyfw6c94l4b"; sha256 = "0m86hqyq1jrr49jkc8mnlmx4bdq281hyxhcrrzacyv20nlqwvd8v";
}; }).overrideAttrs (_: {
# normally guessed by the url's file extension, force it to unpack properly
unpackCmd = "unzip $curSrc";
});
cargoPatches = [ ./cargo-lock.patch ];
cargoSha256 = "07w5lmvm5w6id0qikcs968n0c69bb6fav63l66bskxcjva67d6dy";
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ]; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
cargoSha256 = "1pwg35kgn5z2zrlj1dwcbbdmkgmnvfxpxv4klzsxxg4m9xr1pfy4";
meta = with lib; { meta = with lib; {
description = "Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers"; description = "Proxy for using W3C WebDriver-compatible clients to interact with Gecko-based browsers";
homepage = https://github.com/mozilla/geckodriver; homepage = https://github.com/mozilla/geckodriver;