Merge pull request #301781 from samhh/turbo1.13.2

turbo: 1.11.3 -> 1.13.2
This commit is contained in:
Peder Bergebakken Sundt 2024-05-03 00:32:37 +02:00 committed by GitHub
commit c48015a607
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13664 additions and 5 deletions

13638
pkgs/tools/misc/turbo/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -17,13 +17,13 @@
, capnproto , capnproto
}: }:
rustPlatform.buildRustPackage rec{ rustPlatform.buildRustPackage rec{
pname = "turbo"; pname = "turbo-unwrapped";
version = "1.11.3"; version = "1.13.2";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "vercel"; owner = "vercel";
repo = "turbo"; repo = "turbo";
rev = "v${version}"; rev = "v${version}";
hash = "sha256-hjJXbGct9ZmriKdVjB7gwfmFsV1Tv57V7DfUMFZ8Xv0="; hash = "sha256-q1BxBAjfHyGDaH/IywPw9qnZJjzeU4tu2CyUWbnd6y8=";
}; };
cargoBuildFlags = [ cargoBuildFlags = [
"--package" "--package"
@ -31,7 +31,10 @@ rustPlatform.buildRustPackage rec{
]; ];
RELEASE_TURBO_CLI = "true"; RELEASE_TURBO_CLI = "true";
cargoHash = "sha256-bAXO4Lqv4ibo+fz3679MjNgP2MMY8TbxhG0+DRy0xcA="; cargoLock = {
lockFile = ./Cargo.lock;
outputHashes."tui-term-0.1.8" = "sha256-MNeVnF141uNWbjqXEbHwXnMTkCnvIteb5v40HpEK6D4=";
};
RUSTC_BOOTSTRAP = 1; RUSTC_BOOTSTRAP = 1;
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -0,0 +1,16 @@
{ lib, symlinkJoin, makeWrapper, turbo-unwrapped
, disableTelemetry ? true, disableUpdateNotifier ? true }:
symlinkJoin {
pname = "turbo";
name = "turbo-${turbo-unwrapped.version}";
inherit (turbo-unwrapped) version meta;
nativeBuildInputs = [ makeWrapper ];
paths = [ turbo-unwrapped ];
postBuild = ''
rm $out/bin/turbo
makeWrapper ${turbo-unwrapped}/bin/turbo $out/bin/turbo \
${lib.optionalString disableTelemetry "--set TURBO_TELEMETRY_DISABLED 1"} \
${lib.optionalString disableUpdateNotifier "--add-flags --no-update-notifier"}
'';
}

View File

@ -13950,7 +13950,9 @@ with pkgs;
tuptime = callPackage ../tools/system/tuptime { }; 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; inherit (darwin.apple_sdk_11_0.frameworks) IOKit CoreServices CoreFoundation;
}; };