mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
selenium-manager: disable telemetry
This commit is contained in:
13
pkgs/by-name/se/selenium-manager/disable-telemetry.patch
Normal file
13
pkgs/by-name/se/selenium-manager/disable-telemetry.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
diff --git a/rust/src/config.rs b/rust/src/config.rs
|
||||
index f7cd4f32ec..ec454127be 100644
|
||||
--- a/rust/src/config.rs
|
||||
+++ b/rust/src/config.rs
|
||||
@@ -120,7 +120,7 @@ impl ManagerConfig {
|
||||
avoid_browser_download: BooleanKey("avoid-browser-download", false).get_value(),
|
||||
language_binding: StringKey(vec!["language-binding"], "").get_value(),
|
||||
selenium_version: StringKey(vec!["selenium-version"], "").get_value(),
|
||||
- avoid_stats: BooleanKey("avoid-stats", false).get_value(),
|
||||
+ avoid_stats: BooleanKey("avoid-stats", true).get_value(),
|
||||
skip_driver_in_path: BooleanKey("skip-driver-in-path", false).get_value(),
|
||||
skip_browser_in_path: BooleanKey("skip-browser-in-path", false).get_value(),
|
||||
}
|
||||
@@ -16,7 +16,13 @@ rustPlatform.buildRustPackage rec {
|
||||
hash = "sha256-b5xwuZ4lcwLbGhJuEmHYrFXoaTW/M0ABdK3dvbpj8oM=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/rust";
|
||||
patches = [
|
||||
./disable-telemetry.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
cd rust
|
||||
'';
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-hXtF3qFzzM2TqpEP9JWdi7uU5TgFHF9lZO5bmZcEuDk=";
|
||||
|
||||
Reference in New Issue
Block a user