mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
41 lines
974 B
Nix
41 lines
974 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, rustPlatform
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "selenium-manager";
|
|
version = "4.22.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "SeleniumHQ";
|
|
repo = "selenium";
|
|
rev = "selenium-${version}";
|
|
hash = "sha256-qBuZgI5SSBwxbSBrAT0W/HzzV2JmPL00hPJ6s57QTeg=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/rust";
|
|
|
|
cargoHash = "sha256-1CPUOAfBfUeZt5S8t5SM3oyrNwXKHplhHG5idVy4YrE=";
|
|
|
|
buildInputs = lib.optionals stdenv.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;
|
|
};
|
|
}
|