nixpkgs/pkgs/development/tools/geckodriver/default.nix

32 lines
765 B
Nix
Raw Normal View History

2017-11-03 03:24:43 +00:00
{ lib
, fetchFromGitHub
2017-11-03 03:24:43 +00:00
, rustPlatform
, stdenv
, darwin
2017-11-03 03:24:43 +00:00
}:
with rustPlatform;
buildRustPackage rec {
version = "0.22.0";
2019-08-31 12:41:23 +01:00
pname = "geckodriver";
2017-11-03 03:24:43 +00:00
src = fetchFromGitHub {
owner = "mozilla";
repo = "geckodriver";
rev = "v${version}";
sha256 = "12m95lfqwdxs2m5kjh3yrpm9w2li5m8n3fw46a2nkxyfw6c94l4b";
2017-11-03 03:24:43 +00:00
};
buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security ];
cargoSha256 = "1pwg35kgn5z2zrlj1dwcbbdmkgmnvfxpxv4klzsxxg4m9xr1pfy4";
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 ];
};
}