2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2022-10-21 18:38:19 +00:00
|
|
|
, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, rustPlatform
|
|
|
|
, stdenv
|
2021-04-13 19:44:15 +00:00
|
|
|
, Security
|
|
|
|
, libiconv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.33.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "geckodriver";
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mozilla";
|
|
|
|
repo = "geckodriver";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-IBzLxiqfXFiEaDmCVZjAJCPcVInBT1ZZ5fkCOHedZkA=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
cargoHash = "sha256-4/VmF8reY0pz8wswQn3IlTNt6SaVunr2v+hv+oM+G/s=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-04-13 19:44:15 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv Security ];
|
2020-04-24 23:36:52 +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 ];
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "geckodriver";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|