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 {
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.34.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}";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-jrF55j3/WKpGl7sJzRmPyaNMbxPqAoXWiuQJsxfIYgc=";
|
2022-10-21 18:38:19 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
cargoHash = "sha256-4on4aBkRI9PiPgNcxVktTDX28qRy3hvV9+glNB6hT1k=";
|
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
|
|
|
};
|
|
|
|
}
|