Unverified Commit 2c0219bb authored by Sam A. Horvath-Hunt's avatar Sam A. Horvath-Hunt
Browse files

turbo: Add turbo-unwrapped / disable update checks & telemetry in turbo

parent 53248e55
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
, capnproto
}:
rustPlatform.buildRustPackage rec{
  pname = "turbo";
  pname = "turbo-unwrapped";
  version = "1.13.2";
  src = fetchFromGitHub {
    owner = "vercel";
+9 −0
Original line number Diff line number Diff line
{ 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"}
''
+3 −1
Original line number Diff line number Diff line
@@ -14033,7 +14033,9 @@ with pkgs;
  tuptime = callPackage ../tools/system/tuptime { };
  turbo = callPackage ../tools/misc/turbo {
  turbo = callPackage ../tools/misc/turbo/wrapper.nix { };
  turbo-unwrapped = callPackage ../tools/misc/turbo {
    inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreServices CoreFoundation;
  };