forked from mirrors/nixpkgs
rewrite old builder to new style builder (long overdue!)
svn path=/nixpkgs/trunk/; revision=4103
This commit is contained in:
parent
91e960b400
commit
41c7e3457b
|
@ -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
|
||||
|
|
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue