Added a fix-builder to fix most of the builder scripts automatically. Basic packages, such as zlib and getopt now build.
svn path=/nixpkgs/trunk/; revision=6143
This commit is contained in:
parent
18d81e23fe
commit
77a5272922
@ -88,9 +88,19 @@ let {
|
|||||||
(removeAttrs attrs ["meta"])
|
(removeAttrs attrs ["meta"])
|
||||||
//
|
//
|
||||||
{
|
{
|
||||||
builder = if attrs ? realBuilder then attrs.realBuilder else shell;
|
builder =
|
||||||
args = if attrs ? args then attrs.args else
|
if attrs ? realBuilder then attrs.realBuilder else shell;
|
||||||
["-e" (if attrs ? builder then attrs.builder else ./default-builder.sh)];
|
args =
|
||||||
|
if attrs ? args then
|
||||||
|
attrs.args
|
||||||
|
else
|
||||||
|
["-e" (
|
||||||
|
if attrs ? builder then
|
||||||
|
[./fix-builder.sh attrs.builder]
|
||||||
|
else
|
||||||
|
./default-builder.sh
|
||||||
|
)
|
||||||
|
];
|
||||||
inherit stdenv system;
|
inherit stdenv system;
|
||||||
C_INCLUDE_PATH = mingwRuntimeSrc + "/include" + ":" + w32apiSrc + "/include";
|
C_INCLUDE_PATH = mingwRuntimeSrc + "/include" + ":" + w32apiSrc + "/include";
|
||||||
CPLUS_INCLUDE_PATH = mingwRuntimeSrc + "/include" + ":" + w32apiSrc + "/include";
|
CPLUS_INCLUDE_PATH = mingwRuntimeSrc + "/include" + ":" + w32apiSrc + "/include";
|
||||||
|
12
pkgs/stdenv/mingw/fix-builder.sh
Executable file
12
pkgs/stdenv/mingw/fix-builder.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
# Workaround MSYS shell problem
|
||||||
|
if test -z "$out"; then
|
||||||
|
stdenv="$STDENV"
|
||||||
|
out="$OUT"
|
||||||
|
src="$SRC"
|
||||||
|
srcs="$SRCS"
|
||||||
|
buildInputs="$BUILDINPUTS"
|
||||||
|
propagatedBuildInputs="$PROPAGATEDBUILDINPUTS"
|
||||||
|
succeedOnFailure="$SUCCEEDONFAILURE"
|
||||||
|
fi
|
||||||
|
|
||||||
|
source $@
|
@ -5,6 +5,6 @@ let {
|
|||||||
};
|
};
|
||||||
|
|
||||||
body = {
|
body = {
|
||||||
inherit (pkgs) zlib;
|
inherit (pkgs) zlib getopt realCurl;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user