Merge pull request #301781 from samhh/turbo1.13.2
turbo: 1.11.3 -> 1.13.2
This commit is contained in:
commit
c48015a607
4 changed files with 13664 additions and 5 deletions
13638
pkgs/tools/misc/turbo/Cargo.lock
generated
Normal file
13638
pkgs/tools/misc/turbo/Cargo.lock
generated
Normal file
File diff suppressed because it is too large
Load diff
|
@ -17,13 +17,13 @@
|
|||
, capnproto
|
||||
}:
|
||||
rustPlatform.buildRustPackage rec{
|
||||
pname = "turbo";
|
||||
version = "1.11.3";
|
||||
pname = "turbo-unwrapped";
|
||||
version = "1.13.2";
|
||||
src = fetchFromGitHub {
|
||||
owner = "vercel";
|
||||
repo = "turbo";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-hjJXbGct9ZmriKdVjB7gwfmFsV1Tv57V7DfUMFZ8Xv0=";
|
||||
hash = "sha256-q1BxBAjfHyGDaH/IywPw9qnZJjzeU4tu2CyUWbnd6y8=";
|
||||
};
|
||||
cargoBuildFlags = [
|
||||
"--package"
|
||||
|
@ -31,7 +31,10 @@ rustPlatform.buildRustPackage rec{
|
|||
];
|
||||
RELEASE_TURBO_CLI = "true";
|
||||
|
||||
cargoHash = "sha256-bAXO4Lqv4ibo+fz3679MjNgP2MMY8TbxhG0+DRy0xcA=";
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes."tui-term-0.1.8" = "sha256-MNeVnF141uNWbjqXEbHwXnMTkCnvIteb5v40HpEK6D4=";
|
||||
};
|
||||
|
||||
RUSTC_BOOTSTRAP = 1;
|
||||
nativeBuildInputs = [
|
||||
|
|
16
pkgs/tools/misc/turbo/wrapper.nix
Normal file
16
pkgs/tools/misc/turbo/wrapper.nix
Normal 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"}
|
||||
'';
|
||||
}
|
|
@ -13950,7 +13950,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 a new issue