move some of the configuration into the builder from default.nix. Also add support for sparc

svn path=/nixpkgs/trunk/; revision=4470
This commit is contained in:
Armijn Hemel 2005-12-31 16:27:23 +00:00
parent a4a9e5aea6
commit 05ab87c7e1
2 changed files with 10 additions and 1 deletions

View file

@ -1,5 +1,13 @@
source $stdenv/setup
if test $cross = "arm-linux" ; then
configureFlags="--target=arm-linux"
elif test $cross = "mips-linux" ; then
configureFlags="--target=mips-linux"
elif test $cross = "sparc-linux" ; then
configureFlags="--target=sparc-linux"
fi
patchConfigure() {
# Clear the default library search path.
if test "$noSysDirs" = "1"; then

View file

@ -8,5 +8,6 @@ stdenv.mkDerivation {
md5 = "6a9d529efb285071dad10e1f3d2b2967";
};
inherit noSysDirs;
configureFlags = if cross=="arm-linux" then "--target=arm-linux" else if cross=="mips-linux" then "--target=mips-linux" else "";
#configureFlags = if cross=="arm-linux" then "--target=arm-linux" else if cross=="mips-linux" then "--target=mips-linux" else if cross=="sparc-linux" then "--target=sparc-linux";
inherit cross;
}