Unverified Commit c48015a6 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

Merge pull request #301781 from samhh/turbo1.13.2

turbo: 1.11.3 -> 1.13.2
parents 124c8281 a640f699
Loading
Loading
Loading
Loading
+13638 −0

File added.

Preview size limit exceeded, changes collapsed.

+7 −4
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
{ 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"}
  '';
}
+3 −1
Original line number Diff line number Diff line
@@ -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;
  };