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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
759 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
, Security
, libiconv
2017-11-03 03:24:43 +00:00
}:
rustPlatform.buildRustPackage rec {
2023-04-09 14:52:40 +00:00
version = "0.33.0";
2019-08-31 11:41:23 +00:00
pname = "geckodriver";
2017-11-03 03:24:43 +00:00
src = fetchFromGitHub {
owner = "mozilla";
repo = "geckodriver";
rev = "refs/tags/v${version}";
2023-04-09 14:52:40 +00:00
sha256 = "sha256-IBzLxiqfXFiEaDmCVZjAJCPcVInBT1ZZ5fkCOHedZkA=";
};
2017-11-03 03:24:43 +00:00
2023-04-09 14:52:40 +00:00
cargoHash = "sha256-4/VmF8reY0pz8wswQn3IlTNt6SaVunr2v+hv+oM+G/s=";
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
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";
2017-11-03 03:24:43 +00:00
license = licenses.mpl20;
maintainers = with maintainers; [ jraygauthier ];
};
}