ecc: move CARGO_* env vars into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-17 13:45:49 +01:00
parent 7e9f1f09a4
commit 73b273f58f
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -51,7 +51,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
wrapProgram $out/bin/cargo-lambda --prefix PATH : ${lib.makeBinPath [ zig_0_13 ]}
'';
CARGO_LAMBDA_BUILD_INFO = "(nixpkgs)";
env.CARGO_LAMBDA_BUILD_INFO = "(nixpkgs)";
cargoBuildFlags = [ "--features=skip-build-banner" ];
cargoCheckFlags = [ "--features=skip-build-banner" ];
+4 -2
View File
@@ -20,8 +20,10 @@ rustPlatform.buildRustPackage (finalAttrs: {
buildAndTestSubdir = "crates/codebook-lsp";
cargoHash = "sha256-hxPgYGBq+KZfEyFiHQG31cNEN6A6hUgKRgZXIHOGalw=";
CARGO_PROFILE_RELEASE_LTO = "fat";
CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
env = {
CARGO_PROFILE_RELEASE_LTO = "fat";
CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
};
# Integration tests require internet access for dictionaries
doCheck = false;
+1 -1
View File
@@ -78,7 +78,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
zlib
];
CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER = "gcc";
env.CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER = "gcc";
preBuild = ''
# `SANDBOX` defined by upstream to disable build-time network access