3
0
Fork 0
forked from mirrors/nixpkgs

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"
. $stdenv/setup
source $stdenv/setup
tar xvfz $src
cd sysvinit-*
patch -p1 < $srcPatch
buildPhase() {
cd src
make
}
buildPhase=buildPhase
installPhase() {
mkdir $out
mkdir $out/bin
mkdir $out/sbin
@ -16,3 +18,8 @@ mkdir $out/share/man/man1
mkdir $out/share/man/man5
mkdir $out/share/man/man8
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;
md5 = "8a2d8f1ed5a2909da04132fefa44905e";
};
srcPatch = ./patch;
#srcPatch = ./patch;
patches = [./patch];
}