summary refs log tree commit diff
path: root/pkgs/os-specific/linux/sysvinit/builder.sh
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2005-10-18 21:25:57 +0000
committerArmijn Hemel <armijn@gpl-violations.org>2005-10-18 21:25:57 +0000
commit41c7e3457b005ae0aacc0d3c2ad1ee4fd17bcbc4 (patch)
tree3601ce6af6d25cea71893cb40e80246e341b88ce /pkgs/os-specific/linux/sysvinit/builder.sh
parent91e960b40011a04ea4d44c6e0344127961098264 (diff)
downloadnixpkgs-41c7e3457b005ae0aacc0d3c2ad1ee4fd17bcbc4.tar
nixpkgs-41c7e3457b005ae0aacc0d3c2ad1ee4fd17bcbc4.tar.gz
nixpkgs-41c7e3457b005ae0aacc0d3c2ad1ee4fd17bcbc4.tar.bz2
nixpkgs-41c7e3457b005ae0aacc0d3c2ad1ee4fd17bcbc4.tar.lz
nixpkgs-41c7e3457b005ae0aacc0d3c2ad1ee4fd17bcbc4.tar.xz
nixpkgs-41c7e3457b005ae0aacc0d3c2ad1ee4fd17bcbc4.tar.zst
nixpkgs-41c7e3457b005ae0aacc0d3c2ad1ee4fd17bcbc4.zip
rewrite old builder to new style builder (long overdue!)
svn path=/nixpkgs/trunk/; revision=4103
Diffstat (limited to 'pkgs/os-specific/linux/sysvinit/builder.sh')
-rw-r--r--pkgs/os-specific/linux/sysvinit/builder.sh17
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/os-specific/linux/sysvinit/builder.sh b/pkgs/os-specific/linux/sysvinit/builder.sh
index ed32068532b..76927bccda4 100644
--- a/pkgs/os-specific/linux/sysvinit/builder.sh
+++ b/pkgs/os-specific/linux/sysvinit/builder.sh
@@ -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