diff options
author | Sam A. Horvath-Hunt <hello@samhh.com> | 2024-05-01 11:19:23 +0100 |
---|---|---|
committer | Sam A. Horvath-Hunt <hello@samhh.com> | 2024-05-01 11:20:27 +0100 |
commit | 2c0219bb232c267fda35765954d0ca5df5fa3b08 (patch) | |
tree | 6d01d3c77a6735274b68cfe2ef0db538d03ef57b /pkgs/tools/misc | |
parent | 53248e5576a9e0695cf049d5f98f61e34a3df7f6 (diff) |
turbo: Add turbo-unwrapped / disable update checks & telemetry in turbo
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r-- | pkgs/tools/misc/turbo/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/misc/turbo/wrapper.nix | 9 |
2 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/tools/misc/turbo/default.nix b/pkgs/tools/misc/turbo/default.nix index 6a2f7e9b033aa..ca499d635360c 100644 --- a/pkgs/tools/misc/turbo/default.nix +++ b/pkgs/tools/misc/turbo/default.nix @@ -17,7 +17,7 @@ , capnproto }: rustPlatform.buildRustPackage rec{ - pname = "turbo"; + pname = "turbo-unwrapped"; version = "1.13.2"; src = fetchFromGitHub { owner = "vercel"; diff --git a/pkgs/tools/misc/turbo/wrapper.nix b/pkgs/tools/misc/turbo/wrapper.nix new file mode 100644 index 0000000000000..1bb5e10f34b67 --- /dev/null +++ b/pkgs/tools/misc/turbo/wrapper.nix @@ -0,0 +1,9 @@ +{ lib, runCommand, makeWrapper, turbo-unwrapped +, disableTelemetry ? true, disableUpdateNotifier ? true }: + +runCommand "turbo" { nativeBuildInputs = [ makeWrapper ]; } '' + mkdir -p $out/bin + makeWrapper ${turbo-unwrapped}/bin/turbo $out/bin/turbo \ + ${lib.optionalString disableTelemetry "--set TURBO_TELEMETRY_DISABLED 1"} \ + ${lib.optionalString disableUpdateNotifier "--add-flags --no-update-notifier"} +'' |