chickenPackages_{4,5}.eggDerivation: move env variables into env (#491384)
This commit is contained in:
@@ -26,10 +26,13 @@ stdenv.mkDerivation (
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
buildInputs = [ chicken ];
|
||||
|
||||
CSC_OPTIONS = lib.concatStringsSep " " cscOptions;
|
||||
env = {
|
||||
CSC_OPTIONS = lib.concatStringsSep " " cscOptions;
|
||||
|
||||
CHICKEN_REPOSITORY = libPath;
|
||||
CHICKEN_INSTALL_PREFIX = "$out";
|
||||
CHICKEN_REPOSITORY = libPath;
|
||||
CHICKEN_INSTALL_PREFIX = "$out";
|
||||
}
|
||||
// (args.env or { });
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
@@ -41,7 +41,10 @@ in
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
CSC_OPTIONS = lib.concatStringsSep " " cscOptions;
|
||||
env = {
|
||||
CSC_OPTIONS = lib.concatStringsSep " " cscOptions;
|
||||
}
|
||||
// (args.env or { });
|
||||
|
||||
buildPhase = ''
|
||||
runHook preBuild
|
||||
|
||||
@@ -24,7 +24,7 @@ let
|
||||
broken = addMetaAttrs { broken = true; };
|
||||
brokenOnDarwin = addMetaAttrs { broken = stdenv.hostPlatform.isDarwin; };
|
||||
addToCscOptions = opt: old: {
|
||||
CSC_OPTIONS = lib.concatStringsSep " " ([ old.CSC_OPTIONS or "" ] ++ lib.toList opt);
|
||||
env.CSC_OPTIONS = lib.concatStringsSep " " ([ old.env.CSC_OPTIONS or "" ] ++ lib.toList opt);
|
||||
};
|
||||
in
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user