5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
16 lines
575 B
Nix
16 lines
575 B
Nix
{ 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"}
|
|
'';
|
|
}
|