depot/third_party/nixpkgs/pkgs/by-name/se/selenium-manager/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

47 lines
1 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "selenium-manager";
version = "4.28.0";
src = fetchFromGitHub {
owner = "SeleniumHQ";
repo = "selenium";
tag = "selenium-${version}";
hash = "sha256-b5xwuZ4lcwLbGhJuEmHYrFXoaTW/M0ABdK3dvbpj8oM=";
};
patches = [
./disable-telemetry.patch
];
postPatch = ''
cd rust
'';
useFetchCargoVendor = true;
cargoHash = "sha256-hXtF3qFzzM2TqpEP9JWdi7uU5TgFHF9lZO5bmZcEuDk=";
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;
};
}