buildCrystalPackage: fix env overrides (#504643)

This commit is contained in:
Peter Hoeg
2026-03-29 19:17:43 +00:00
committed by GitHub
@@ -108,11 +108,12 @@ stdenv.mkDerivation (
++ [ "runHook postConfigure" ]
));
env = args.env or { } // {
env = {
CRFLAGS = lib.concatStringsSep " " defaultOptions;
PREFIX = placeholder "out";
};
}
// (args.env or { });
inherit enableParallelBuilding;
strictDeps = true;
@@ -205,8 +206,9 @@ stdenv.mkDerivation (
done
'';
meta = args.meta or { } // {
platforms = args.meta.platforms or crystal.meta.platforms;
};
meta = {
platforms = crystal.meta.platforms;
}
// (args.meta or { });
}
)