rewrite old builder to new style builder (long overdue!)

svn path=/nixpkgs/trunk/; revision=4103
This commit is contained in:
Armijn Hemel 2005-10-18 21:25:57 +00:00
parent 91e960b400
commit 41c7e3457b
2 changed files with 14 additions and 6 deletions

View File

@ -1,11 +1,13 @@
buildinputs="$patch" source $stdenv/setup
. $stdenv/setup
tar xvfz $src buildPhase() {
cd sysvinit-*
patch -p1 < $srcPatch
cd src cd src
make make
}
buildPhase=buildPhase
installPhase() {
mkdir $out mkdir $out
mkdir $out/bin mkdir $out/bin
mkdir $out/sbin mkdir $out/sbin
@ -16,3 +18,8 @@ mkdir $out/share/man/man1
mkdir $out/share/man/man5 mkdir $out/share/man/man5
mkdir $out/share/man/man8 mkdir $out/share/man/man8
make ROOT=$out install make ROOT=$out install
}
installPhase=installPhase
genericBuild

View File

@ -7,5 +7,6 @@ stdenv.mkDerivation {
url = http://nix.cs.uu.nl/dist/tarballs/sysvinit-2.85.tar.gz; url = http://nix.cs.uu.nl/dist/tarballs/sysvinit-2.85.tar.gz;
md5 = "8a2d8f1ed5a2909da04132fefa44905e"; md5 = "8a2d8f1ed5a2909da04132fefa44905e";
}; };
srcPatch = ./patch; #srcPatch = ./patch;
patches = [./patch];
} }