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:
Martin Bravenboer 2006-08-17 01:49:53 +00:00
parent 18d81e23fe
commit 77a5272922
3 changed files with 26 additions and 4 deletions

View File

@ -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";

View 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 $@

View File

@ -5,6 +5,6 @@ let {
}; };
body = { body = {
inherit (pkgs) zlib; inherit (pkgs) zlib getopt realCurl;
}; };
} }