mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-07 13:09:27 +03:00
turbo: Add turbo-unwrapped / disable update checks & telemetry in turbo
This commit is contained in:
parent
53248e5576
commit
2c0219bb23
@ -17,7 +17,7 @@
|
||||
, capnproto
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec{
|
||||
pname = "turbo";
|
||||
pname = "turbo-unwrapped";
|
||||
version = "1.13.2";
|
||||
src = fetchFromGitHub {
|
||||
owner = "vercel";
|
||||
|
9
pkgs/tools/misc/turbo/wrapper.nix
Normal file
9
pkgs/tools/misc/turbo/wrapper.nix
Normal file
@ -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"}
|
||||
''
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user