crystal, buildCrystalPackage: move env variable(s) into env (#488868)

This commit is contained in:
Gergő Gutyina
2026-02-14 12:02:29 +00:00
committed by GitHub
2 changed files with 13 additions and 9 deletions
@@ -108,9 +108,11 @@ stdenv.mkDerivation (
++ [ "runHook postConfigure" ]
));
CRFLAGS = lib.concatStringsSep " " defaultOptions;
env = {
CRFLAGS = lib.concatStringsSep " " defaultOptions;
PREFIX = placeholder "out";
PREFIX = placeholder "out";
};
inherit enableParallelBuilding;
strictDeps = true;
@@ -199,15 +199,17 @@ let
"progress=1"
];
LLVM_CONFIG = "${llvmPackages.llvm.dev}/bin/llvm-config";
env = {
LLVM_CONFIG = "${llvmPackages.llvm.dev}/bin/llvm-config";
FLAGS = [
"--single-module" # needed for deterministic builds
];
FLAGS = [
"--single-module" # needed for deterministic builds
];
# This makes sure we don't keep depending on the previous version of
# crystal used to build this one.
CRYSTAL_LIBRARY_PATH = "${placeholder "lib"}/crystal";
# This makes sure we don't keep depending on the previous version of
# crystal used to build this one.
CRYSTAL_LIBRARY_PATH = "${placeholder "lib"}/crystal";
};
# We *have* to add `which` to the PATH or crystal is unable to build
# stuff later if which is not available.