diff --git a/pkgs/applications/audio/bmp-plugins/wma/builder.sh b/pkgs/applications/audio/bmp-plugins/wma/builder.sh deleted file mode 100644 index c70264d098c4..000000000000 --- a/pkgs/applications/audio/bmp-plugins/wma/builder.sh +++ /dev/null @@ -1,11 +0,0 @@ -source $stdenv/setup - -buildFlags="-f Makefile.bmp" - -installPhase=installPhase -installPhase() { - ensureDir "$out/lib/bmp/Input" - cp libwma.so "$out/lib/bmp/Input" -} - -genericBuild diff --git a/pkgs/applications/audio/bmp-plugins/wma/default.nix b/pkgs/applications/audio/bmp-plugins/wma/default.nix index 2812f4ce280f..617db6232a7d 100644 --- a/pkgs/applications/audio/bmp-plugins/wma/default.nix +++ b/pkgs/applications/audio/bmp-plugins/wma/default.nix @@ -2,10 +2,18 @@ stdenv.mkDerivation { name = "bmp-plugin-wma-1.0.5"; - builder = ./builder.sh; + src = fetchurl { url = http://mcmcc.bat.ru/xmms-wma/xmms-wma-1.0.5.tar.bz2; md5 = "5d62a0f969617aeb40096362c7a8a506"; }; + buildInputs = [pkgconfig bmp]; + + buildFlags = "-f Makefile.bmp"; + + installPhase = '' + ensureDir "$out/lib/bmp/Input" + cp libwma.so "$out/lib/bmp/Input" + ''; } diff --git a/pkgs/applications/editors/emacs-21/builder.sh b/pkgs/applications/editors/emacs-21/builder.sh index e9c909739d53..acd98aefd048 100644 --- a/pkgs/applications/editors/emacs-21/builder.sh +++ b/pkgs/applications/editors/emacs-21/builder.sh @@ -8,6 +8,5 @@ postConfigure() { cp $myglibc/lib/crti.o src cp $myglibc/lib/crtn.o src } -postConfigure=postConfigure genericBuild diff --git a/pkgs/applications/editors/emacs-22/builder.sh b/pkgs/applications/editors/emacs-22/builder.sh index 33e72409ea11..7a82f6552efc 100644 --- a/pkgs/applications/editors/emacs-22/builder.sh +++ b/pkgs/applications/editors/emacs-22/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -preConfigure=preConfigure preConfigure() { libc=$(cat ${NIX_GCC}/nix-support/orig-libc) echo "libc: $libc" diff --git a/pkgs/applications/editors/emacs-unicode/builder.sh b/pkgs/applications/editors/emacs-unicode/builder.sh index 953965716b70..677311c4fd30 100644 --- a/pkgs/applications/editors/emacs-unicode/builder.sh +++ b/pkgs/applications/editors/emacs-unicode/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -preConfigure=preConfigure preConfigure() { libc=$(cat ${NIX_GCC}/nix-support/orig-libc) echo "libc: $libc" diff --git a/pkgs/applications/editors/monodevelop/builder.sh b/pkgs/applications/editors/monodevelop/builder.sh index a4f6edad04c3..c069edb3a6d4 100644 --- a/pkgs/applications/editors/monodevelop/builder.sh +++ b/pkgs/applications/editors/monodevelop/builder.sh @@ -3,7 +3,6 @@ source $makeWrapper export MONO_GAC_PREFIX=$monodoc:$gtksharp -postInstall=postInstall postInstall() { mv $out/bin $out/bin-orig mkdir $out/bin diff --git a/pkgs/applications/editors/monodoc/builder.sh b/pkgs/applications/editors/monodoc/builder.sh index ee80be9d95c4..bcea7a7a89af 100644 --- a/pkgs/applications/editors/monodoc/builder.sh +++ b/pkgs/applications/editors/monodoc/builder.sh @@ -1,7 +1,6 @@ source $stdenv/setup source $makeWrapper -postInstall=postInstall postInstall() { mv $out/bin $out/bin-orig mkdir $out/bin diff --git a/pkgs/applications/editors/nedit/builder.sh b/pkgs/applications/editors/nedit/builder.sh index a16ff3f32e92..51b5f1836546 100644 --- a/pkgs/applications/editors/nedit/builder.sh +++ b/pkgs/applications/editors/nedit/builder.sh @@ -2,7 +2,6 @@ source $stdenv/setup export NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L$motif/lib $NIX_CFLAGS_COMPILE" -installPhase=installPhase installPhase() { ensureDir $out/bin cp -p source/nedit source/nc $out/bin diff --git a/pkgs/applications/graphics/f-spot/builder.sh b/pkgs/applications/graphics/f-spot/builder.sh index 2e3aaf894bf0..252c4f91e0c6 100644 --- a/pkgs/applications/graphics/f-spot/builder.sh +++ b/pkgs/applications/graphics/f-spot/builder.sh @@ -1,7 +1,6 @@ source $stdenv/setup source $makeWrapper -postInstall=postInstall postInstall() { mv $out/bin $out/bin-orig mkdir $out/bin diff --git a/pkgs/applications/graphics/xfig/builder.sh b/pkgs/applications/graphics/xfig/builder.sh index 39fe5852309b..3f3f2d7649ae 100644 --- a/pkgs/applications/graphics/xfig/builder.sh +++ b/pkgs/applications/graphics/xfig/builder.sh @@ -2,7 +2,6 @@ source $stdenv/setup makeFlags="XAWLIB=-lXaw3d BINDIR=$out/bin XAPPLOADDIR=$out/etc/X11/app-defaults LIBDIR=$out/lib/X11 XFIGDOCDIR=$out/share/doc/xfig MANPATH=$out/man" -preBuild=preBuild preBuild() { echo "#define XAW3D" >> Imakefile.tmp echo "#define XAW3D1_5E" >> Imakefile.tmp diff --git a/pkgs/applications/misc/cdrtools/builder.sh b/pkgs/applications/misc/cdrtools/builder.sh deleted file mode 100644 index 0e2afe082998..000000000000 --- a/pkgs/applications/misc/cdrtools/builder.sh +++ /dev/null @@ -1,11 +0,0 @@ -source $stdenv/setup - -prefix=$out - -configurePhase() { - echo ; -} - -configurePhase=configurePhase - -genericBuild diff --git a/pkgs/applications/misc/cdrtools/default.nix b/pkgs/applications/misc/cdrtools/default.nix index 271ed1a7ebb2..94af2ee58f55 100644 --- a/pkgs/applications/misc/cdrtools/default.nix +++ b/pkgs/applications/misc/cdrtools/default.nix @@ -2,7 +2,9 @@ stdenv.mkDerivation { name = "cdrtools-2.01"; - builder = ./builder.sh; + + configurePhase = "prefix=$out"; + #hack, I'm getting "chown: invalid user: `bin" error, so replace chown by a nop dummy script preInstall = '' mkdir "$TMP/bin" @@ -12,10 +14,12 @@ stdenv.mkDerivation { PATH="$TMP/bin:$PATH" done ''; + src = fetchurl { url = ftp://ftp.berlios.de/pub/cdrecord/cdrtools-2.01.tar.bz2; md5 = "d44a81460e97ae02931c31188fe8d3fd"; }; + patches = [./cdrtools-2.01-install.patch]; meta = { diff --git a/pkgs/applications/networking/browsers/firefox-2/builder.sh b/pkgs/applications/networking/browsers/firefox-2/builder.sh index 4fa7fbb84ab5..e77bd2211de2 100644 --- a/pkgs/applications/networking/browsers/firefox-2/builder.sh +++ b/pkgs/applications/networking/browsers/firefox-2/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -postInstall=postInstall postInstall() { # Strip some more stuff diff --git a/pkgs/applications/networking/browsers/mozilla/builder.sh b/pkgs/applications/networking/browsers/mozilla/builder.sh index c82d3d9783ea..483585dd1709 100644 --- a/pkgs/applications/networking/browsers/mozilla/builder.sh +++ b/pkgs/applications/networking/browsers/mozilla/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -preConfigure=preConfigure preConfigure() { cat > .mozconfig < $out/nix-support/orig-libc doSubstitute "$addFlags" "$out/nix-support/add-flags.sh" -doSubstitute "$setupHook" "$out/nix-support/setup-hook" - cp -p $utils $out/nix-support/utils.sh diff --git a/pkgs/desktops/superkaramba/builder.sh b/pkgs/desktops/superkaramba/builder.sh index ef9d4f348d86..83332db6fd21 100755 --- a/pkgs/desktops/superkaramba/builder.sh +++ b/pkgs/desktops/superkaramba/builder.sh @@ -3,7 +3,6 @@ source $stdenv/setup echo $xlibs2 echo $x_libraries_env -postConfigure=postConfigure postConfigure() { pwd; ls -l super*/src/Makefile; diff --git a/pkgs/development/compilers/gcc-2.95/builder.sh b/pkgs/development/compilers/gcc-2.95/builder.sh index cf12872f1c37..5244d986da08 100644 --- a/pkgs/development/compilers/gcc-2.95/builder.sh +++ b/pkgs/development/compilers/gcc-2.95/builder.sh @@ -47,7 +47,6 @@ else fi -preConfigure=preConfigure preConfigure() { # Determine the frontends to build. diff --git a/pkgs/development/compilers/gcc-3.3/builder.sh b/pkgs/development/compilers/gcc-3.3/builder.sh index 20973c2623b9..5b80215cffb5 100644 --- a/pkgs/development/compilers/gcc-3.3/builder.sh +++ b/pkgs/development/compilers/gcc-3.3/builder.sh @@ -38,8 +38,6 @@ EOF configureFlags="--enable-languages=$langs" } -preConfigure=preConfigure - postConfigure() { if test "$noSysDirs" = "1"; then @@ -82,8 +80,6 @@ postConfigure() { fi } -postConfigure=postConfigure - buildFlags="bootstrap" diff --git a/pkgs/development/compilers/gcc-3.4/builder.sh b/pkgs/development/compilers/gcc-3.4/builder.sh index eb1f211dce8f..5a43d600a503 100644 --- a/pkgs/development/compilers/gcc-3.4/builder.sh +++ b/pkgs/development/compilers/gcc-3.4/builder.sh @@ -35,7 +35,6 @@ if test "$noSysDirs" = "1"; then fi -preConfigure=preConfigure preConfigure() { # Perform the build in a different directory. mkdir ../build @@ -44,7 +43,6 @@ preConfigure() { } -postInstall=postInstall postInstall() { # Remove precompiled headers for now. They are very big and # probably not very useful yet. diff --git a/pkgs/development/compilers/gcc-4.0/builder.sh b/pkgs/development/compilers/gcc-4.0/builder.sh index 5df3168027fe..08622c1899ed 100644 --- a/pkgs/development/compilers/gcc-4.0/builder.sh +++ b/pkgs/development/compilers/gcc-4.0/builder.sh @@ -54,7 +54,6 @@ if test "$noSysDirs" = "1"; then fi -preConfigure=preConfigure preConfigure() { # Perform the build in a different directory. mkdir ../build @@ -63,7 +62,6 @@ preConfigure() { } -postInstall=postInstall postInstall() { # Remove precompiled headers for now. They are very big and # probably not very useful yet. diff --git a/pkgs/development/compilers/gcc-4.1/builder.sh b/pkgs/development/compilers/gcc-4.1/builder.sh index c17d04037027..f8abca122570 100644 --- a/pkgs/development/compilers/gcc-4.1/builder.sh +++ b/pkgs/development/compilers/gcc-4.1/builder.sh @@ -50,7 +50,6 @@ if test "$noSysDirs" = "1"; then fi -preConfigure=preConfigure preConfigure() { # Perform the build in a different directory. mkdir ../build @@ -59,7 +58,6 @@ preConfigure() { } -postInstall=postInstall postInstall() { # Remove precompiled headers for now. They are very big and # probably not very useful yet. diff --git a/pkgs/development/compilers/gcc-4.2/builder.sh b/pkgs/development/compilers/gcc-4.2/builder.sh index ee11e974a404..d749fc08d2a0 100644 --- a/pkgs/development/compilers/gcc-4.2/builder.sh +++ b/pkgs/development/compilers/gcc-4.2/builder.sh @@ -51,7 +51,6 @@ if test "$noSysDirs" = "1"; then fi -preConfigure=preConfigure preConfigure() { # Perform the build in a different directory. mkdir ../build @@ -60,7 +59,6 @@ preConfigure() { } -postInstall=postInstall postInstall() { # Remove precompiled headers for now. They are very big and # probably not very useful yet. diff --git a/pkgs/development/compilers/gcc-4.3/builder.sh b/pkgs/development/compilers/gcc-4.3/builder.sh index a6bbbd7a052c..2bc011e3e6e1 100644 --- a/pkgs/development/compilers/gcc-4.3/builder.sh +++ b/pkgs/development/compilers/gcc-4.3/builder.sh @@ -51,7 +51,6 @@ if test "$noSysDirs" = "1"; then fi -preConfigure=preConfigure preConfigure() { # Perform the build in a different directory. mkdir ../build @@ -60,7 +59,6 @@ preConfigure() { } -postInstall=postInstall postInstall() { # Remove precompiled headers for now. They are very big and # probably not very useful yet. diff --git a/pkgs/development/compilers/gcc-apple/builder.sh b/pkgs/development/compilers/gcc-apple/builder.sh index 8485b6efec0f..a10813e5e33c 100644 --- a/pkgs/development/compilers/gcc-apple/builder.sh +++ b/pkgs/development/compilers/gcc-apple/builder.sh @@ -51,7 +51,6 @@ if test "$noSysDirs" = "1"; then fi -preConfigure=preConfigure preConfigure() { # Determine the frontends to build. @@ -72,7 +71,6 @@ preConfigure() { } -postInstall=postInstall postInstall() { # Remove precompiled headers for now. They are very big and # probably not very useful yet. diff --git a/pkgs/development/compilers/gcc-upc-4.0/builder.sh b/pkgs/development/compilers/gcc-upc-4.0/builder.sh index 5df3168027fe..08622c1899ed 100644 --- a/pkgs/development/compilers/gcc-upc-4.0/builder.sh +++ b/pkgs/development/compilers/gcc-upc-4.0/builder.sh @@ -54,7 +54,6 @@ if test "$noSysDirs" = "1"; then fi -preConfigure=preConfigure preConfigure() { # Perform the build in a different directory. mkdir ../build @@ -63,7 +62,6 @@ preConfigure() { } -postInstall=postInstall postInstall() { # Remove precompiled headers for now. They are very big and # probably not very useful yet. diff --git a/pkgs/development/compilers/llvm/builder.sh b/pkgs/development/compilers/llvm/builder.sh index 962e8d372388..fd44f6bf6a38 100644 --- a/pkgs/development/compilers/llvm/builder.sh +++ b/pkgs/development/compilers/llvm/builder.sh @@ -51,7 +51,6 @@ if test "$noSysDirs" = "1"; then fi -preConfigure=preConfigure preConfigure() { # Perform the build in a different directory. mkdir ../build @@ -60,7 +59,6 @@ preConfigure() { } -postInstall=postInstall postInstall() { # Remove precompiled headers for now. They are very big and # probably not very useful yet. diff --git a/pkgs/development/interpreters/perl-5.8/builder.sh b/pkgs/development/interpreters/perl-5.8/builder.sh index c393cb0560b1..79458b3249b6 100644 --- a/pkgs/development/interpreters/perl-5.8/builder.sh +++ b/pkgs/development/interpreters/perl-5.8/builder.sh @@ -9,13 +9,11 @@ configureScript=./Configure configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags" dontAddPrefix=1 -preBuild=preBuild preBuild() { # Make Cwd work on NixOS (where we don't have a /bin/pwd). substituteInPlace lib/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'" } -postInstall=postInstall postInstall() { ensureDir "$out/nix-support" cp $setupHook $out/nix-support/setup-hook diff --git a/pkgs/development/interpreters/python/2.4/default.nix b/pkgs/development/interpreters/python/2.4/default.nix index 726d2ac4aa96..e64d0442d3fc 100644 --- a/pkgs/development/interpreters/python/2.4/default.nix +++ b/pkgs/development/interpreters/python/2.4/default.nix @@ -32,18 +32,18 @@ stdenv.mkDerivation { configureFlags = "--enable-shared"; - preConfigure = " + preConfigure = '' # Purity. for i in /usr /sw /opt /pkg; do substituteInPlace ./setup.py --replace $i /no-such-path done - "; + ''; + + setupHook = ./setup-hook.sh; - postInstall = " - ensureDir $out/nix-support - cp ${./setup-hook.sh} $out/nix-support/setup-hook + postInstall = '' rm -rf $out/lib/python2.4/test - "; + ''; passthru = { inherit zlibSupport; diff --git a/pkgs/development/interpreters/python/2.5/default.nix b/pkgs/development/interpreters/python/2.5/default.nix index 7b009bbe0c0a..a9e63557524c 100644 --- a/pkgs/development/interpreters/python/2.5/default.nix +++ b/pkgs/development/interpreters/python/2.5/default.nix @@ -53,20 +53,20 @@ stdenv.mkDerivation { configureFlags = "--enable-shared --with-wctype-functions"; - preConfigure = " + preConfigure = '' # Purity. for i in /usr /sw /opt /pkg; do substituteInPlace ./setup.py --replace $i /no-such-path done - " + (if readline != null then '' + '' + (if readline != null then '' export NIX_LDFLAGS="$NIX_LDFLAGS -lncurses" '' else ""); + + setupHook = ./setup-hook.sh; - postInstall = " - ensureDir $out/nix-support - cp ${./setup-hook.sh} $out/nix-support/setup-hook + postInstall = '' rm -rf $out/lib/python2.5/test - "; + ''; passthru = { inherit zlibSupport; diff --git a/pkgs/development/interpreters/tcl/builder.sh b/pkgs/development/interpreters/tcl/builder.sh deleted file mode 100644 index 24d4853de5d5..000000000000 --- a/pkgs/development/interpreters/tcl/builder.sh +++ /dev/null @@ -1,16 +0,0 @@ -source $stdenv/setup - -preConfigure() { - cd unix -} - -preConfigure=preConfigure - -postInstall() { - make install-private-headers - ln -s $out/bin/tclsh8.4 $out/bin/tclsh -} - -postInstall=postInstall - -genericBuild diff --git a/pkgs/development/interpreters/tcl/default.nix b/pkgs/development/interpreters/tcl/default.nix index 5f9a4f9f90fa..7cc58b92145c 100644 --- a/pkgs/development/interpreters/tcl/default.nix +++ b/pkgs/development/interpreters/tcl/default.nix @@ -2,11 +2,19 @@ stdenv.mkDerivation { name = "tcl-8.4.18"; - builder = ./builder.sh; + src = fetchurl { url = mirror://sourceforge/tcl/tcl8.4.18-src.tar.gz; sha256 = "197h3m2lc5a6famc683zhjp55774gf8zwggfy2893v48lp5p7qny"; }; + + preConfigure = "cd unix"; + + postInstall = '' + make install-private-headers + ln -s $out/bin/tclsh8.4 $out/bin/tclsh + ''; + meta = { description = "The Tcl scription language"; homepage = http://www.tcl.tk/; diff --git a/pkgs/development/libraries/Xaw3d/builder.sh b/pkgs/development/libraries/Xaw3d/builder.sh index bbe01704175c..afd640b625d6 100644 --- a/pkgs/development/libraries/Xaw3d/builder.sh +++ b/pkgs/development/libraries/Xaw3d/builder.sh @@ -1,13 +1,11 @@ source $stdenv/setup -configurePhase=configurePhase configurePhase() { cd lib/Xaw3d (mkdir X11 && cd X11 && ln -fs .. Xaw3d) xmkmf } -buildPhase=buildPhase buildPhase() { make depend $makeFlags make $makeFlags @@ -23,4 +21,4 @@ installPhase() { makeFlags="CDEBUGFLAGS=" # !!! awful hack -genericBuild \ No newline at end of file +genericBuild diff --git a/pkgs/development/libraries/cracklib/builder.sh b/pkgs/development/libraries/cracklib/builder.sh index 0f7473a81b2e..3833cc1e6c15 100644 --- a/pkgs/development/libraries/cracklib/builder.sh +++ b/pkgs/development/libraries/cracklib/builder.sh @@ -5,13 +5,9 @@ preConfigure() { cp $dicts cracklib-dicts/ } -preConfigure=preConfigure - postInstall() { $out/sbin/cracklib-format cracklib-dicts/* | $out/sbin/cracklib-packer cracklib_dict cp cracklib_dict.* $out/lib } -postInstall=postInstall - genericBuild diff --git a/pkgs/development/libraries/db4/builder.sh b/pkgs/development/libraries/db4/builder.sh index d71bd8067436..b9d48b608032 100644 --- a/pkgs/development/libraries/db4/builder.sh +++ b/pkgs/development/libraries/db4/builder.sh @@ -4,11 +4,9 @@ preConfigure() { cd build_unix configureScript=../dist/configure } -preConfigure=preConfigure postInstall() { rm -rf $out/docs } -postInstall=postInstall genericBuild diff --git a/pkgs/development/libraries/db4/db4-4.4.nix b/pkgs/development/libraries/db4/db4-4.4.nix index 4304cd8f9f39..7444439fc73d 100644 --- a/pkgs/development/libraries/db4/db4-4.4.nix +++ b/pkgs/development/libraries/db4/db4-4.4.nix @@ -1,8 +1,10 @@ {stdenv, fetchurl, cxxSupport ? true, compat185 ? true}: -stdenv.mkDerivation ({ +stdenv.mkDerivation { name = "db4-4.4.20"; + builder = ./builder.sh; + src = fetchurl { urls = [ http://download.oracle.com/berkeley-db/db-4.4.20.NC.tar.gz @@ -10,8 +12,11 @@ stdenv.mkDerivation ({ ]; md5 = "afd9243ea353bbaa04421488d3b37900"; }; + configureFlags = [ (if cxxSupport then "--enable-cxx" else "--disable-cxx") (if compat185 then "--enable-compat185" else "--disable-compat185") ]; -} // (if stdenv.system == "i686-cygwin" then {patches = [./cygwin-4.4.patch];} else {})) + + patches = [ ./cygwin-4.4.patch ]; +} diff --git a/pkgs/development/libraries/db4/db4-4.5.nix b/pkgs/development/libraries/db4/db4-4.5.nix index c67deaeda45a..e5cf6f35a01f 100644 --- a/pkgs/development/libraries/db4/db4-4.5.nix +++ b/pkgs/development/libraries/db4/db4-4.5.nix @@ -2,14 +2,18 @@ stdenv.mkDerivation { name = "db4-4.5.20"; + builder = ./builder.sh; + src = fetchurl { url = http://download-east.oracle.com/berkeley-db/db-4.5.20.tar.gz; md5 = "b0f1c777708cb8e9d37fb47e7ed3312d"; }; + configureFlags = [ (if cxxSupport then "--enable-cxx" else "--disable-cxx") (if compat185 then "--enable-compat185" else "--disable-compat185") ]; + patches = [./cygwin-4.5.patch ./register-race-fix.patch]; } diff --git a/pkgs/development/libraries/glibc-2.5/builder.sh b/pkgs/development/libraries/glibc-2.5/builder.sh index 8d5d6908f045..19ed717de3b3 100644 --- a/pkgs/development/libraries/glibc-2.5/builder.sh +++ b/pkgs/development/libraries/glibc-2.5/builder.sh @@ -8,7 +8,6 @@ source $stdenv/setup export PWD_P=$(type -tP pwd) -postUnpack=postUnpack postUnpack() { cd $sourceRoot unpackFile $linuxthreadsSrc @@ -16,7 +15,6 @@ postUnpack() { } -preConfigure=preConfigure preConfigure() { # Use Linuxthreads instead of NPTL. @@ -34,7 +32,6 @@ preConfigure() { } -postConfigure=postConfigure postConfigure() { # Hack: get rid of the `-static' flag set by the bootstrap stdenv. # This has to be done *after* `configure' because it builds some @@ -44,7 +41,6 @@ postConfigure() { } -postInstall=postInstall postInstall() { if test -n "$installLocales"; then make localedata/install-locales diff --git a/pkgs/development/libraries/glibc-2.7/builder.sh b/pkgs/development/libraries/glibc-2.7/builder.sh index 1bf806c01493..d5a43229bfaf 100644 --- a/pkgs/development/libraries/glibc-2.7/builder.sh +++ b/pkgs/development/libraries/glibc-2.7/builder.sh @@ -11,7 +11,6 @@ export PWD_P=$(type -tP pwd) export BASH_SHELL=$SHELL -preConfigure=preConfigure preConfigure() { for i in configure io/ftwtest-sh; do @@ -34,7 +33,6 @@ preConfigure() { } -postConfigure=postConfigure postConfigure() { # Hack: get rid of the `-static' flag set by the bootstrap stdenv. # This has to be done *after* `configure' because it builds some @@ -44,7 +42,6 @@ postConfigure() { } -postInstall=postInstall postInstall() { if test -n "$installLocales"; then make localedata/install-locales diff --git a/pkgs/development/libraries/libjpeg/builder.sh b/pkgs/development/libraries/libjpeg/builder.sh index b5662f7eb675..923f4f839744 100644 --- a/pkgs/development/libraries/libjpeg/builder.sh +++ b/pkgs/development/libraries/libjpeg/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -preConfigure=preConfigure preConfigure() { # Workarounds for the ancient libtool shipped by libjpeg. ln -s $libtool/bin/libtool . @@ -8,7 +7,6 @@ preConfigure() { cp $libtool/share/libtool/config.sub . } -preInstall=preInstall preInstall() { mkdir $out mkdir $out/bin @@ -18,7 +16,6 @@ preInstall() { mkdir $out/man/man1 } -patchPhase=patchPhase patchPhase() { for i in $patches; do patch < $i diff --git a/pkgs/development/libraries/qt-3/builder.sh b/pkgs/development/libraries/qt-3/builder.sh index b403f036b0e9..460ae17766af 100644 --- a/pkgs/development/libraries/qt-3/builder.sh +++ b/pkgs/development/libraries/qt-3/builder.sh @@ -1,10 +1,6 @@ source $stdenv/setup -ensureDir $out/nix-support -substitute "$hook" "$out/nix-support/setup-hook" --subst-var out - -preConfigure=preConfigure preConfigure() { # Patch some of the configure files a bit to get of global paths. @@ -30,7 +26,6 @@ configureScript() { } -postInstall=postInstall postInstall() { # Qt's `make install' is broken; it copies ./bin/qmake, which # is a symlink to ./qmake/qmake. So we end up with a dangling diff --git a/pkgs/development/libraries/qt-3/default.nix b/pkgs/development/libraries/qt-3/default.nix index e26c9072076d..e1bc3f897418 100644 --- a/pkgs/development/libraries/qt-3/default.nix +++ b/pkgs/development/libraries/qt-3/default.nix @@ -21,7 +21,9 @@ stdenv.mkDerivation { name = "qt-3.3.8"; builder = ./builder.sh; - hook = ./setup-hook.sh; + + setupHook = ./setup-hook.sh; + src = fetchurl { url = ftp://ftp.trolltech.com/qt/source/qt-x11-free-3.3.8.tar.bz2; sha256 = "0jd4g3bwkgk2s4flbmgisyihm7cam964gzb3pawjlkhas01zghz8"; diff --git a/pkgs/development/python-modules/pysqlite/builder.sh b/pkgs/development/python-modules/pysqlite/builder.sh index e1ca0e4a8fc8..04027c22971a 100644 --- a/pkgs/development/python-modules/pysqlite/builder.sh +++ b/pkgs/development/python-modules/pysqlite/builder.sh @@ -6,16 +6,13 @@ configurePhase() { --replace "/usr/local/lib" "$sqlite/lib" cp setup.cfg /tmp } -configurePhase=configurePhase buildPhase() { $python/bin/python setup.py build } -buildPhase=buildPhase installPhase() { $python/bin/python setup.py install --prefix=$out } -installPhase=installPhase genericBuild diff --git a/pkgs/development/python-modules/wxPython/builder.sh b/pkgs/development/python-modules/wxPython/builder.sh index e4dce866c676..ed7177081f9f 100644 --- a/pkgs/development/python-modules/wxPython/builder.sh +++ b/pkgs/development/python-modules/wxPython/builder.sh @@ -5,16 +5,13 @@ flags="WXPORT=gtk2 NO_HEADERS=1 BUILD_GLCANVAS=0 BUILD_OGL=0 UNICODE=1" configurePhase() { cd wxPython } -configurePhase=configurePhase buildPhase() { python setup.py $flags build } -buildPhase=buildPhase installPhase() { python setup.py $flags install --prefix=$out } -installPhase=installPhase -genericBuild \ No newline at end of file +genericBuild diff --git a/pkgs/development/tools/parsing/jikespg/builder.sh b/pkgs/development/tools/parsing/jikespg/builder.sh index 42fe7fdd6246..090def7c4643 100644 --- a/pkgs/development/tools/parsing/jikespg/builder.sh +++ b/pkgs/development/tools/parsing/jikespg/builder.sh @@ -2,16 +2,14 @@ source $stdenv/setup set -e -configurePhase=configurePhase configurePhase() { tar zxvf $src cd jikespg/src } -installPhase=installPhase installPhase() { ensureDir $out/bin cp jikespg $out/bin } -genericBuild \ No newline at end of file +genericBuild diff --git a/pkgs/games/exult/builder.sh b/pkgs/games/exult/builder.sh index 33ed6ffd3fe6..b13e8c6d2348 100644 --- a/pkgs/games/exult/builder.sh +++ b/pkgs/games/exult/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -postInstall=postInstall postInstall() { ensureDir $out/share/exult/music for i in $musicFiles; do diff --git a/pkgs/misc/busybox/builder.sh b/pkgs/misc/busybox/builder.sh deleted file mode 100644 index bee57504f93a..000000000000 --- a/pkgs/misc/busybox/builder.sh +++ /dev/null @@ -1,12 +0,0 @@ -source $stdenv/setup - -export installFlags="PREFIX=$out" - -preBuild() { - cp $config .config - make include/bb_config.h -} - -preBuild=preBuild - -genericBuild diff --git a/pkgs/misc/busybox/busybox-1.2.nix b/pkgs/misc/busybox/busybox-1.2.nix index 7806088a164c..ce88e194d9ff 100644 --- a/pkgs/misc/busybox/busybox-1.2.nix +++ b/pkgs/misc/busybox/busybox-1.2.nix @@ -2,7 +2,6 @@ stdenv.mkDerivation { name = "busybox-1.2.2.1"; - builder = ./builder.sh; src = fetchurl { url = http://busybox.net/downloads/busybox-1.2.2.1.tar.bz2; @@ -10,7 +9,13 @@ stdenv.mkDerivation { }; # inherit gccCross; + # buildinputs = [binutilsCross]; + # fixme, need a decent config for MIPS or so - config = ./x86-config-1.2; + preBuild = '' + installFlags="PREFIX=$out" + cp ${./x86-config-1.2} .config + make include/bb_config.h + ''; } diff --git a/pkgs/misc/emulators/atari800/builder.sh b/pkgs/misc/emulators/atari800/builder.sh index 04351a9bca1c..f0fcb5150c88 100644 --- a/pkgs/misc/emulators/atari800/builder.sh +++ b/pkgs/misc/emulators/atari800/builder.sh @@ -1,11 +1,9 @@ source $stdenv/setup -preConfigure=preConfigure preConfigure() { cd src } -postInstall=postInstall postInstall() { romsDir=$out/share/atari800/roms ensureDir $romsDir diff --git a/pkgs/misc/ghostscript/builder.sh b/pkgs/misc/ghostscript/builder.sh index d2e33f26bfc2..361b7f77f0c6 100644 --- a/pkgs/misc/ghostscript/builder.sh +++ b/pkgs/misc/ghostscript/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -preConfigure=preConfigure preConfigure() { # "ijs" is impure: it contains symlinks to /usr/share/automake etc.! rm -rf ijs/ltmain.sh @@ -11,7 +10,6 @@ preConfigure() { installTargets="install install-so install-data install-doc install-man" -postInstall=postInstall postInstall() { for i in $fonts; do (cd $out/share/ghostscript && tar xvfz $i) diff --git a/pkgs/misc/linuxwacom/builder.sh b/pkgs/misc/linuxwacom/builder.sh deleted file mode 100644 index d38726c7efb6..000000000000 --- a/pkgs/misc/linuxwacom/builder.sh +++ /dev/null @@ -1,12 +0,0 @@ -source $stdenv/setup - -postInstall() { - if test -n "$udevSupport"; then - ensureDir $out/etc/udev/rules.d - cp $udevRules $out/etc/udev/rules.d/10-wacom.rules - fi -} - -postInstall=postInstall - -genericBuild diff --git a/pkgs/misc/linuxwacom/default.nix b/pkgs/misc/linuxwacom/default.nix index 7fbf62b05895..8b1c2ced55bc 100644 --- a/pkgs/misc/linuxwacom/default.nix +++ b/pkgs/misc/linuxwacom/default.nix @@ -2,12 +2,18 @@ stdenv.mkDerivation { name = "linuxwacom-0.7.2"; - builder = ./builder.sh; + src = fetchurl { url = http://nixos.org/tarballs/linuxwacom-0.7.2.tar.bz2; md5 = "3f6290101d5712a24097243ca9f092ed"; }; + buildInputs = [libX11 libXi]; - udevRules = ./10-wacom.rules; - inherit udevSupport; + + postInstall = '' + if test -n "${toString udevSupport}"; then + ensureDir $out/etc/udev/rules.d + cp ${./10-wacom.rules} $out/etc/udev/rules.d/10-wacom.rules + fi + ''; } diff --git a/pkgs/misc/sane-backends/builder.sh b/pkgs/misc/sane-backends/builder.sh deleted file mode 100644 index 5c40eaaa9b96..000000000000 --- a/pkgs/misc/sane-backends/builder.sh +++ /dev/null @@ -1,12 +0,0 @@ -source $stdenv/setup - -postInstall() { - if test "$udevSupport" = "1" ; then - ensureDir $out/etc/udev/rules.d/ - cp tools/udev/libsane.rules $out/etc/udev/rules.d/60-libsane.rules - fi -} - -postInstall=postInstall - -genericBuild diff --git a/pkgs/misc/sane-backends/default.nix b/pkgs/misc/sane-backends/default.nix index 561e053416e0..a24e72d70e6e 100644 --- a/pkgs/misc/sane-backends/default.nix +++ b/pkgs/misc/sane-backends/default.nix @@ -5,17 +5,27 @@ assert hotplugSupport -> stdenv.system == "i686-linux"; stdenv.mkDerivation { name = "sane-backends-1.0.18"; - builder = ./builder.sh; + src = fetchurl { url = ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.18/sane-backends-1.0.18.tar.gz; md5 = "7ca7e2908e24721471de92cf40c75e60"; }; + udevSupport = hotplugSupport; - buildInputs = (if libusb != null then [libusb] else []); + buildInputs = if libusb != null then [libusb] else []; - preInstall = (if gt68xxFirmware != null then - "mkdir -p \${out}/share/sane/gt68xx ; ln -s " + - (gt68xxFirmware {inherit fetchurl;})+ " \${out}/share/sane/gt68xx/PS1fw.usb " - else ""); + postInstall = '' + if test "$udevSupport" = "1"; then + ensureDir $out/etc/udev/rules.d/ + cp tools/udev/libsane.rules $out/etc/udev/rules.d/60-libsane.rules + fi + ''; + + preInstall = + if gt68xxFirmware != null then + "mkdir -p \${out}/share/sane/gt68xx ; ln -s " + + (gt68xxFirmware {inherit fetchurl;}) + + " \${out}/share/sane/gt68xx/PS1fw.usb " + else ""; } diff --git a/pkgs/misc/tex/tetex/builder.sh b/pkgs/misc/tex/tetex/builder.sh index b43b7ed93ec2..0611f6763472 100644 --- a/pkgs/misc/tex/tetex/builder.sh +++ b/pkgs/misc/tex/tetex/builder.sh @@ -19,10 +19,4 @@ configureFlags="\ --with-system-ncurses \ " -postInstall() { - ensureDir "$out/nix-support" - cp $setupHook $out/nix-support/setup-hook -} -postInstall=postInstall - genericBuild diff --git a/pkgs/os-specific/linux/dietlibc/builder.sh b/pkgs/os-specific/linux/dietlibc/builder.sh index 50779de8f996..ee0cb2b7522b 100644 --- a/pkgs/os-specific/linux/dietlibc/builder.sh +++ b/pkgs/os-specific/linux/dietlibc/builder.sh @@ -3,7 +3,6 @@ source $stdenv/setup makeFlags="prefix=$out" installFlags="prefix=$out" -postInstall=postInstall postInstall() { (cd $out && ln -s lib-* lib) (cd $out/lib && ln -s start.o crt1.o) diff --git a/pkgs/os-specific/linux/initscripts/builder.sh b/pkgs/os-specific/linux/initscripts/builder.sh deleted file mode 100644 index 37bc538d692f..000000000000 --- a/pkgs/os-specific/linux/initscripts/builder.sh +++ /dev/null @@ -1,20 +0,0 @@ -source $stdenv/setup - -export ROOT=$out - -buildPhase() { - cd src - make -} - -buildPhase=buildPhase - -installPhase() { - make install - cd ..; cp -af rc.d sysconfig ppp $ROOT/etc - -} - -installPhase=installPhase - -genericBuild diff --git a/pkgs/os-specific/linux/initscripts/default.nix b/pkgs/os-specific/linux/initscripts/default.nix deleted file mode 100644 index acb138265154..000000000000 --- a/pkgs/os-specific/linux/initscripts/default.nix +++ /dev/null @@ -1,12 +0,0 @@ -{stdenv, fetchurl, popt, pkgconfig, glib}: - -stdenv.mkDerivation { - name = "initscripts-8.18"; - builder = ./builder.sh; - src = fetchurl { - url = http://nixos.org/tarballs/initscripts-8.18.tar.bz2; - md5 = "1b89ac4d344f1f20fe5022a198b69915"; - }; - buildInputs = [popt pkgconfig glib]; - patches = [./initscripts-8.18.patch]; -} diff --git a/pkgs/os-specific/linux/initscripts/initscripts-8.18.patch b/pkgs/os-specific/linux/initscripts/initscripts-8.18.patch deleted file mode 100644 index c548b99b4f16..000000000000 --- a/pkgs/os-specific/linux/initscripts/initscripts-8.18.patch +++ /dev/null @@ -1,49 +0,0 @@ -diff -ruN initscripts-8.18/src/Makefile initscripts-8.18.new/src/Makefile ---- initscripts-8.18/src/Makefile 2005-03-31 22:52:04.000000000 +0200 -+++ initscripts-8.18.new/src/Makefile 2005-12-12 17:54:14.000000000 +0100 -@@ -1,12 +1,13 @@ - CFLAGS+=$(RPM_OPT_FLAGS) -Wall -D_GNU_SOURCE - - PROGS=usernetctl doexec netreport testd usleep ipcalc initlog \ -- getkey ppp-watch consoletype genhostid kmodule -+ getkey consoletype genhostid -+ #getkey ppp-watch consoletype genhostid kmodule - PPPWATCH_OBJS=ppp-watch.o shvar.o - INITLOG_OBJS=initlog.o process.o - USLEEP_OBJS=usleep.o - --mandir=/usr/share/man -+mandir= - - all: $(PROGS) - -@@ -14,9 +15,9 @@ - rm -f $(PROGS) *.o - - install: -- mkdir -p $(ROOT)/bin $(ROOT)/usr/sbin $(ROOT)$(mandir)/man{1,8} $(ROOT)/etc -+ mkdir -p $(ROOT)/bin $(ROOT)/sbin $(ROOT)/usr/sbin $(ROOT)$(mandir)/man{1,8} $(ROOT)/etc - install -m 755 doexec $(ROOT)/bin/doexec -- install -m 755 kmodule $(ROOT)/sbin/kmodule -+ #install -m 755 kmodule $(ROOT)/sbin/kmodule - install -m 755 usleep $(ROOT)/bin/usleep - install -m 4755 usernetctl $(ROOT)/usr/sbin/usernetctl - install -m 2755 netreport $(ROOT)/sbin/netreport -@@ -24,7 +25,7 @@ - install -m 755 genhostid $(ROOT)/sbin/genhostid - install -m 755 initlog $(ROOT)/sbin/initlog - install -m 755 getkey $(ROOT)/sbin/getkey -- install -m 755 ppp-watch $(ROOT)/sbin/ppp-watch -+ #install -m 755 ppp-watch $(ROOT)/sbin/ppp-watch - install -m 755 consoletype $(ROOT)/sbin/consoletype - install -m 644 initlog.1 $(ROOT)$(mandir)/man1 - install -m 644 genhostid.1 $(ROOT)$(mandir)/man1 -@@ -32,7 +33,7 @@ - install -m 644 netreport.1 $(ROOT)$(mandir)/man1 - install -m 644 usleep.1 $(ROOT)$(mandir)/man1 - install -m 644 usernetctl.8 $(ROOT)$(mandir)/man8 -- install -m 644 ppp-watch.8 $(ROOT)$(mandir)/man8 -+ #install -m 644 ppp-watch.8 $(ROOT)$(mandir)/man8 - install -m 644 ipcalc.1 $(ROOT)$(mandir)/man1 - install -m 644 consoletype.1 $(ROOT)$(mandir)/man1 - install -m 644 initlog.conf $(ROOT)/etc diff --git a/pkgs/os-specific/linux/kernel-headers-cross/builder.sh b/pkgs/os-specific/linux/kernel-headers-cross/builder.sh index 277246a27d0c..3bc4abc92331 100644 --- a/pkgs/os-specific/linux/kernel-headers-cross/builder.sh +++ b/pkgs/os-specific/linux/kernel-headers-cross/builder.sh @@ -5,8 +5,6 @@ buildPhase() { make include/linux/version.h } -buildPhase=buildPhase - installPhase() { mkdir $out @@ -29,7 +27,5 @@ installPhase() { echo -n > $out/include/linux/autoconf.h } -installPhase=installPhase - genericBuild diff --git a/pkgs/os-specific/linux/kernel/builder.sh b/pkgs/os-specific/linux/kernel/builder.sh index 84064134d01f..823e2139c558 100644 --- a/pkgs/os-specific/linux/kernel/builder.sh +++ b/pkgs/os-specific/linux/kernel/builder.sh @@ -1,7 +1,6 @@ source $stdenv/setup -configurePhase=configurePhase configurePhase() { if test -n "$preConfigure"; then eval "$preConfigure"; @@ -56,7 +55,6 @@ configurePhase() { } -installPhase=installPhase installPhase() { ensureDir $out diff --git a/pkgs/os-specific/linux/klibc/builder.sh b/pkgs/os-specific/linux/klibc/builder.sh index 7bb77608cf9b..4ae5a9d080b1 100644 --- a/pkgs/os-specific/linux/klibc/builder.sh +++ b/pkgs/os-specific/linux/klibc/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -preBuild=preBuild preBuild() { mkdir -p linux/include cp -prd $kernel/lib/modules/*/build/include/* linux/include/ diff --git a/pkgs/os-specific/linux/kudzu/builder.sh b/pkgs/os-specific/linux/kudzu/builder.sh index 7493b6f6df4c..744d1d516a33 100644 --- a/pkgs/os-specific/linux/kudzu/builder.sh +++ b/pkgs/os-specific/linux/kudzu/builder.sh @@ -10,6 +10,4 @@ preInstall() { make install-program } -preInstall=preInstall - genericBuild diff --git a/pkgs/os-specific/linux/squashfs/builder.sh b/pkgs/os-specific/linux/squashfs/builder.sh deleted file mode 100644 index ca514515c450..000000000000 --- a/pkgs/os-specific/linux/squashfs/builder.sh +++ /dev/null @@ -1,17 +0,0 @@ -source $stdenv/setup - -preBuild() { - cd squashfs-tools -} - -preBuild=preBuild - -installPhase() { - ensureDir $out/sbin - cp mksquashfs $out/sbin - cp unsquashfs $out/sbin -} - -installPhase=installPhase - -genericBuild diff --git a/pkgs/os-specific/linux/squashfs/default.nix b/pkgs/os-specific/linux/squashfs/default.nix index 00ce8fba56e8..8fdf288d7dd5 100644 --- a/pkgs/os-specific/linux/squashfs/default.nix +++ b/pkgs/os-specific/linux/squashfs/default.nix @@ -2,10 +2,21 @@ stdenv.mkDerivation { name = "squashfs-3.3"; - builder = ./builder.sh; + src = fetchurl { url = mirror://sourceforge/squashfs/squashfs3.3.tgz; sha256 = "1j55m26nyvlbld4yxad0r6s1f4rdw9yg89y2gv93ihkx3rx048w4"; }; + buildInputs = [zlib]; + + preBuild = '' + cd squashfs-tools + ''; + + installPhase = '' + ensureDir $out/sbin + cp mksquashfs $out/sbin + cp unsquashfs $out/sbin + ''; } diff --git a/pkgs/os-specific/linux/sysvinit/builder.sh b/pkgs/os-specific/linux/sysvinit/builder.sh index 48574d6ec3e9..198fa9ba4160 100644 --- a/pkgs/os-specific/linux/sysvinit/builder.sh +++ b/pkgs/os-specific/linux/sysvinit/builder.sh @@ -4,7 +4,6 @@ makeFlagsArray=(LCRYPT=-lcrypt BIN_OWNER=$(id -u) BIN_GROUP=$(id -g) ROOT=$out) preBuild="cd src" -preInstall=preInstall preInstall() { substituteInPlace Makefile --replace /usr / mkdir $out @@ -18,7 +17,6 @@ preInstall() { mkdir $out/share/man/man8 } -postInstall=postInstall postInstall() { if test -n "$withoutInitTools"; then mv $out/sbin/killall5 $out/bin diff --git a/pkgs/servers/x11/xorg/imake.sh b/pkgs/servers/x11/xorg/imake.sh index 2de4412e063b..131ce0e832ca 100644 --- a/pkgs/servers/x11/xorg/imake.sh +++ b/pkgs/servers/x11/xorg/imake.sh @@ -1,4 +1,3 @@ -preInstall=preInstall preInstall() { ensureDir $out/lib/X11/config ln -s $xorgcffiles/lib/X11/config/* $out/lib/X11/config diff --git a/pkgs/servers/x11/xorg/xorgserver.sh b/pkgs/servers/x11/xorg/xorgserver.sh index d0ee29dabcf6..0beb09d61a7f 100644 --- a/pkgs/servers/x11/xorg/xorgserver.sh +++ b/pkgs/servers/x11/xorg/xorgserver.sh @@ -3,7 +3,6 @@ # NixOS, so force Make to search in our own Glibc. export VPATH=$(cat ${NIX_GCC}/nix-support/orig-libc)/lib -preConfigure=preConfigure preConfigure() { unpackFile $mesaSrc configureFlags="$configureFlags --with-mesa-source=$(ls -d $(pwd)/Mesa-*)" diff --git a/pkgs/tools/admin/tightvnc/builder.sh b/pkgs/tools/admin/tightvnc/builder.sh index 3474d3eeb0de..95a1a6da9b59 100644 --- a/pkgs/tools/admin/tightvnc/builder.sh +++ b/pkgs/tools/admin/tightvnc/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -buildPhase=buildPhase buildPhase() { xmkmf make World @@ -18,7 +17,6 @@ buildPhase() { cd .. } -installPhase=installPhase installPhase() { ensureDir $out/bin ensureDir $out/man/man1 diff --git a/pkgs/tools/archivers/unzip/builder.sh b/pkgs/tools/archivers/unzip/builder.sh deleted file mode 100644 index fc38b0043813..000000000000 --- a/pkgs/tools/archivers/unzip/builder.sh +++ /dev/null @@ -1,14 +0,0 @@ -source $stdenv/setup - -builder() { - make -f unix/Makefile generic -} - -installer() { - make -f unix/Makefile prefix=$out install -} - -buildPhase=builder -installPhase=installer - -genericBuild diff --git a/pkgs/tools/archivers/unzip/default.nix b/pkgs/tools/archivers/unzip/default.nix index 9e17e2d9edd2..c72def3731a3 100644 --- a/pkgs/tools/archivers/unzip/default.nix +++ b/pkgs/tools/archivers/unzip/default.nix @@ -2,13 +2,17 @@ stdenv.mkDerivation { name = "unzip-5.52"; - builder = ./builder.sh; + src = fetchurl { url = http://nixos.org/tarballs/unzip552.tar.gz; md5 = "9d23919999d6eac9217d1f41472034a9"; }; + buildPhase = "make -f unix/Makefile generic"; + + installPhase = "make -f unix/Makefile prefix=$out install"; + meta = { - homepage = http://www.info-zip.org; + homepage = http://www.info-zip.org; }; } diff --git a/pkgs/tools/compression/zdelta/builder.sh b/pkgs/tools/compression/zdelta/builder.sh index adbddfdf9f5a..376c0bf4f39c 100644 --- a/pkgs/tools/compression/zdelta/builder.sh +++ b/pkgs/tools/compression/zdelta/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -installPhase=installPhase installPhase() { ensureDir $out/bin cp -p zdc zdu $out/bin diff --git a/pkgs/tools/graphics/ploticus/builder.sh b/pkgs/tools/graphics/ploticus/builder.sh index 11ff6f5a332b..89d4e3b98eaf 100644 --- a/pkgs/tools/graphics/ploticus/builder.sh +++ b/pkgs/tools/graphics/ploticus/builder.sh @@ -4,14 +4,10 @@ preBuild() { cd src } -preBuild=preBuild - preInstall() { ensureDir $out/bin } -preInstall=preInstall - postInstall() { # Install the "prefabs". ensureDir $out/share/ploticus/prefabs && \ @@ -34,7 +30,4 @@ EOF ln -s "$out/man/man1/pl.1" "$out/man/man1/ploticus.1" } -postInstall=postInstall - - genericBuild diff --git a/pkgs/tools/graphics/transfig/builder.sh b/pkgs/tools/graphics/transfig/builder.sh index d00aa90c61f0..f128c4ce3648 100644 --- a/pkgs/tools/graphics/transfig/builder.sh +++ b/pkgs/tools/graphics/transfig/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -patchPhase=patchPhase patchPhase() { for i in $patches; do header "applying patch $i" 3 @@ -25,14 +24,12 @@ configureImakefiles() { cp tmpsed transfig/Imakefile } -buildPhase=buildPhase buildPhase() { xmkmf make Makefiles make } -preInstall=preInstall preInstall() { ensureDir $out ensureDir $out/lib diff --git a/pkgs/tools/networking/dhcp/builder.sh b/pkgs/tools/networking/dhcp/builder.sh index 645d93264065..19c3d6087361 100644 --- a/pkgs/tools/networking/dhcp/builder.sh +++ b/pkgs/tools/networking/dhcp/builder.sh @@ -9,7 +9,6 @@ makeFlagsArray=(CLIENT_PATH='\"FAKE_PATH=/nothing\"' \ LIBDIR=$out/lib INCDIR=$out/include VARDB=$OUT/var/run \ ) -configurePhase=configurePhase configurePhase() { # Patch the header that contains absolute paths to the tools. sed -i "includes/dhcpd.h" \ @@ -18,7 +17,6 @@ configurePhase() { ./configure } -preBuild=preBuild preBuild() { substituteInPlace client/scripts/linux --replace /bin/bash $shell } diff --git a/pkgs/tools/security/gnupg/builder.sh b/pkgs/tools/security/gnupg/builder.sh index c5545c7456ca..aaf20c63899e 100644 --- a/pkgs/tools/security/gnupg/builder.sh +++ b/pkgs/tools/security/gnupg/builder.sh @@ -1,6 +1,5 @@ source $stdenv/setup -preConfigure=preConfigure preConfigure() { if test -n "$idea"; then gunzip < $idea > ./cipher/idea.c diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c767b41e59d7..7b6aef799b65 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4615,11 +4615,6 @@ let inherit fetchurl stdenv pkgconfig libdaemon; }; - initscripts = import ../os-specific/linux/initscripts { - inherit fetchurl stdenv popt pkgconfig; - inherit (gtkLibs) glib; - }; - iproute = import ../os-specific/linux/iproute { inherit fetchurl stdenv flex bison db4; };