stdenv adapter: Keep configureFlags a list
This commit is contained in:
parent
f0d6b385d1
commit
3e034bac1a
@ -34,9 +34,9 @@ rec {
|
|||||||
makeStaticBinaries = stdenv: stdenv //
|
makeStaticBinaries = stdenv: stdenv //
|
||||||
{ mkDerivation = args: stdenv.mkDerivation (args // {
|
{ mkDerivation = args: stdenv.mkDerivation (args // {
|
||||||
NIX_CFLAGS_LINK = "-static";
|
NIX_CFLAGS_LINK = "-static";
|
||||||
configureFlags =
|
configureFlags = (args.configureFlags or []) ++ [
|
||||||
toString args.configureFlags or ""
|
"--disable-shared" # brrr...
|
||||||
+ " --disable-shared"; # brrr...
|
];
|
||||||
});
|
});
|
||||||
isStatic = true;
|
isStatic = true;
|
||||||
};
|
};
|
||||||
@ -47,9 +47,10 @@ rec {
|
|||||||
makeStaticLibraries = stdenv: stdenv //
|
makeStaticLibraries = stdenv: stdenv //
|
||||||
{ mkDerivation = args: stdenv.mkDerivation (args // {
|
{ mkDerivation = args: stdenv.mkDerivation (args // {
|
||||||
dontDisableStatic = true;
|
dontDisableStatic = true;
|
||||||
configureFlags =
|
configureFlags = (args.configureFlags or []) ++ [
|
||||||
toString args.configureFlags or ""
|
"--enable-static"
|
||||||
+ " --enable-static --disable-shared";
|
"--disable-shared"
|
||||||
|
];
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user