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"
|
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
|
||||||
|
|
|
@ -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];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue