stdenv adapter: Keep configureFlags a list

This commit is contained in:
John Ericson 2018-08-03 12:36:51 -04:00
parent f0d6b385d1
commit 3e034bac1a

View File

@ -34,9 +34,9 @@ rec {
makeStaticBinaries = stdenv: stdenv //
{ mkDerivation = args: stdenv.mkDerivation (args // {
NIX_CFLAGS_LINK = "-static";
configureFlags =
toString args.configureFlags or ""
+ " --disable-shared"; # brrr...
configureFlags = (args.configureFlags or []) ++ [
"--disable-shared" # brrr...
];
});
isStatic = true;
};
@ -47,9 +47,10 @@ rec {
makeStaticLibraries = stdenv: stdenv //
{ mkDerivation = args: stdenv.mkDerivation (args // {
dontDisableStatic = true;
configureFlags =
toString args.configureFlags or ""
+ " --enable-static --disable-shared";
configureFlags = (args.configureFlags or []) ++ [
"--enable-static"
"--disable-shared"
];
});
};