mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 07:00:43 +00:00
82e678362f
svn path=/nixpkgs/trunk/; revision=4335
39 lines
651 B
Bash
39 lines
651 B
Bash
source $stdenv/setup
|
|
|
|
# !!! hack
|
|
source $NIX_GCC/nix-support/add-flags
|
|
export NIX_LDFLAGS
|
|
|
|
postUnpack() {
|
|
unp() {
|
|
bunzip2 < $umlPatch > patch
|
|
}
|
|
unpackCmd=unp
|
|
unpackFile $umlPatch
|
|
patches="`pwd`/patch $noAioPatch"
|
|
}
|
|
postUnpack=postUnpack
|
|
|
|
configurePhase() {
|
|
cp $config .config
|
|
yes | 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
|