nixpkgs/pkgs/tools/misc/turbo/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
1.5 KiB
Nix
Raw Normal View History

2023-07-12 18:11:37 +00:00
{ stdenv
, lib
2023-02-16 03:27:44 +00:00
, fetchFromGitHub
, protobuf
, rustPlatform
, pkg-config
, openssl
, extra-cmake-modules
, fontconfig
, rust-jemalloc-sys
2023-03-11 11:07:29 +00:00
, testers
, turbo
2023-07-12 18:11:37 +00:00
, nix-update-script
, IOKit
, CoreServices
, CoreFoundation
2024-01-29 06:04:12 +00:00
, capnproto
2023-02-16 03:27:44 +00:00
}:
2024-01-29 06:04:12 +00:00
rustPlatform.buildRustPackage rec{
pname = "turbo-unwrapped";
version = "1.13.2";
2023-02-16 03:27:44 +00:00
src = fetchFromGitHub {
owner = "vercel";
repo = "turbo";
rev = "v${version}";
hash = "sha256-q1BxBAjfHyGDaH/IywPw9qnZJjzeU4tu2CyUWbnd6y8=";
2023-02-16 03:27:44 +00:00
};
cargoBuildFlags = [
"--package"
"turbo"
];
RELEASE_TURBO_CLI = "true";
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes."tui-term-0.1.8" = "sha256-MNeVnF141uNWbjqXEbHwXnMTkCnvIteb5v40HpEK6D4=";
};
2023-07-12 18:11:37 +00:00
2023-02-16 03:27:44 +00:00
RUSTC_BOOTSTRAP = 1;
nativeBuildInputs = [
pkg-config
extra-cmake-modules
2023-04-05 04:52:42 +00:00
protobuf
2024-01-20 05:33:01 +00:00
capnproto
2023-02-16 03:27:44 +00:00
];
buildInputs = [
openssl
fontconfig
rust-jemalloc-sys
2023-07-12 18:11:37 +00:00
] ++ lib.optionals stdenv.isDarwin [
IOKit
CoreServices
CoreFoundation
2023-02-16 03:27:44 +00:00
];
# Browser tests time out with chromium and google-chrome
doCheck = false;
2023-07-12 18:11:37 +00:00
passthru = {
updateScript = nix-update-script {
extraArgs = [ "--version-regex" "^\d+\.\d+\.\d+$" ];
};
tests.version = testers.testVersion { package = turbo; };
};
2023-03-11 11:07:29 +00:00
2023-02-16 03:27:44 +00:00
meta = with lib; {
description = "High-performance build system for JavaScript and TypeScript codebases";
mainProgram = "turbo";
2023-02-16 03:27:44 +00:00
homepage = "https://turbo.build/";
maintainers = with maintainers; [ dlip ];
license = licenses.mpl20;
};
}