nixpkgs/pkgs/misc/uml/builder.sh
Eelco Dolstra 5c9232e063 * Fix UML - poorly.
svn path=/nixpkgs/trunk/; revision=901
2004-04-01 20:12:54 +00:00

39 lines
621 B
Bash

. $stdenv/setup
# !!! hack
. $NIX_GCC/nix-support/add-flags
export NIX_LDFLAGS
postUnpack() {
unp() {
bunzip2 < $umlPatch > patch
}
unpackCmd=unp
unpackFile $umlPatch
patches=`pwd`/patch
}
postUnpack=postUnpack
configurePhase() {
cp $config .config
make oldconfig ARCH=um
}
configurePhase=configurePhase
buildPhase() {
make linux ARCH=um
strip linux
make modules ARCH=um
}
buildPhase=buildPhase
installPhase() {
mkdir $out
mkdir $out/bin
cp -p linux $out/bin
make modules_install INSTALL_MOD_PATH=$out ARCH=um
}
installPhase=installPhase
genericBuild