2017-11-03 03:24:43 +00:00
|
|
|
{ lib
|
2018-02-24 22:57:30 +00:00
|
|
|
, fetchFromGitHub
|
2017-11-03 03:24:43 +00:00
|
|
|
, rustPlatform
|
2018-12-08 11:24:26 +00:00
|
|
|
, stdenv
|
|
|
|
, darwin
|
2017-11-03 03:24:43 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
with rustPlatform;
|
|
|
|
|
|
|
|
buildRustPackage rec {
|
2018-12-08 11:24:26 +00:00
|
|
|
version = "0.22.0";
|
2017-11-03 03:24:43 +00:00
|
|
|
name = "geckodriver-${version}";
|
|
|
|
|
2018-02-24 22:57:30 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla";
|
2018-12-08 11:24:26 +00:00
|
|
|
repo = "geckodriver";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "12m95lfqwdxs2m5kjh3yrpm9w2li5m8n3fw46a2nkxyfw6c94l4b";
|
2017-11-03 03:24:43 +00:00
|
|
|
};
|
|
|
|
|
2018-12-08 11:24:26 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
|
2018-02-24 22:57:30 +00:00
|
|
|
|
2018-12-08 11:24:26 +00:00
|
|
|
cargoSha256 = "1a8idl6falz0n9irh1p8hv5w2pmiknzsfnxl70k1psnznrpk2y8n";
|
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";
|
|
|
|
homepage = https://github.com/mozilla/geckodriver;
|
|
|
|
license = licenses.mpl20;
|
|
|
|
maintainers = with maintainers; [ jraygauthier ];
|
|
|
|
};
|
|
|
|
}
|