ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
40 lines
987 B
Nix
40 lines
987 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "selenium-manager";
|
|
version = "4.24.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SeleniumHQ";
|
|
repo = "selenium";
|
|
rev = "selenium-${version}";
|
|
hash = "sha256-AsQr9kGv2dxkiFzptDA0D27OXZjYj7oDKz2oEQ2qW7s=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/rust";
|
|
|
|
cargoHash = "sha256-mirEeOi6CfKjb8ZuqardJeYy9EGnpsw5fkUw7umhkro=";
|
|
|
|
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
|
darwin.apple_sdk.frameworks.SystemConfiguration
|
|
];
|
|
|
|
# TODO: enable tests
|
|
# The test suite depends on a number of browsers and network requests,
|
|
# check the Gentoo package for inspiration
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Browser automation framework and ecosystem";
|
|
homepage = "https://github.com/SeleniumHQ/selenium";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
mainProgram = "selenium-manager";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|