* Got rid of a lot of "postInstall=postInstall" and similar lines in

builders.  These are redundant now.
* Inlined some trivial builders.
* Removed a few explicit setup-hook creations.  This is done
  automatically now if setupHook is set.
* Deleted the initscripts package.  NixOS doesn't use it anymore.

svn path=/nixpkgs/branches/stdenv-updates/; revision=15276
This commit is contained in:
Eelco Dolstra 2009-04-23 13:31:10 +00:00
parent 0f10222e4e
commit 7689a348c4
88 changed files with 120 additions and 387 deletions

View File

@ -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

View File

@ -2,10 +2,18 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "bmp-plugin-wma-1.0.5"; name = "bmp-plugin-wma-1.0.5";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://mcmcc.bat.ru/xmms-wma/xmms-wma-1.0.5.tar.bz2; url = http://mcmcc.bat.ru/xmms-wma/xmms-wma-1.0.5.tar.bz2;
md5 = "5d62a0f969617aeb40096362c7a8a506"; md5 = "5d62a0f969617aeb40096362c7a8a506";
}; };
buildInputs = [pkgconfig bmp]; buildInputs = [pkgconfig bmp];
buildFlags = "-f Makefile.bmp";
installPhase = ''
ensureDir "$out/lib/bmp/Input"
cp libwma.so "$out/lib/bmp/Input"
'';
} }

View File

@ -8,6 +8,5 @@ postConfigure() {
cp $myglibc/lib/crti.o src cp $myglibc/lib/crti.o src
cp $myglibc/lib/crtn.o src cp $myglibc/lib/crtn.o src
} }
postConfigure=postConfigure
genericBuild genericBuild

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
preConfigure=preConfigure
preConfigure() { preConfigure() {
libc=$(cat ${NIX_GCC}/nix-support/orig-libc) libc=$(cat ${NIX_GCC}/nix-support/orig-libc)
echo "libc: $libc" echo "libc: $libc"

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
preConfigure=preConfigure
preConfigure() { preConfigure() {
libc=$(cat ${NIX_GCC}/nix-support/orig-libc) libc=$(cat ${NIX_GCC}/nix-support/orig-libc)
echo "libc: $libc" echo "libc: $libc"

View File

@ -3,7 +3,6 @@ source $makeWrapper
export MONO_GAC_PREFIX=$monodoc:$gtksharp export MONO_GAC_PREFIX=$monodoc:$gtksharp
postInstall=postInstall
postInstall() { postInstall() {
mv $out/bin $out/bin-orig mv $out/bin $out/bin-orig
mkdir $out/bin mkdir $out/bin

View File

@ -1,7 +1,6 @@
source $stdenv/setup source $stdenv/setup
source $makeWrapper source $makeWrapper
postInstall=postInstall
postInstall() { postInstall() {
mv $out/bin $out/bin-orig mv $out/bin $out/bin-orig
mkdir $out/bin mkdir $out/bin

View File

@ -2,7 +2,6 @@ source $stdenv/setup
export NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L$motif/lib $NIX_CFLAGS_COMPILE" export NIX_CFLAGS_COMPILE="-DBUILD_UNTESTED_NEDIT -L$motif/lib $NIX_CFLAGS_COMPILE"
installPhase=installPhase
installPhase() { installPhase() {
ensureDir $out/bin ensureDir $out/bin
cp -p source/nedit source/nc $out/bin cp -p source/nedit source/nc $out/bin

View File

@ -1,7 +1,6 @@
source $stdenv/setup source $stdenv/setup
source $makeWrapper source $makeWrapper
postInstall=postInstall
postInstall() { postInstall() {
mv $out/bin $out/bin-orig mv $out/bin $out/bin-orig
mkdir $out/bin mkdir $out/bin

View File

@ -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" 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() { preBuild() {
echo "#define XAW3D" >> Imakefile.tmp echo "#define XAW3D" >> Imakefile.tmp
echo "#define XAW3D1_5E" >> Imakefile.tmp echo "#define XAW3D1_5E" >> Imakefile.tmp

View File

@ -1,11 +0,0 @@
source $stdenv/setup
prefix=$out
configurePhase() {
echo ;
}
configurePhase=configurePhase
genericBuild

View File

@ -2,7 +2,9 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "cdrtools-2.01"; 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 #hack, I'm getting "chown: invalid user: `bin" error, so replace chown by a nop dummy script
preInstall = '' preInstall = ''
mkdir "$TMP/bin" mkdir "$TMP/bin"
@ -12,10 +14,12 @@ stdenv.mkDerivation {
PATH="$TMP/bin:$PATH" PATH="$TMP/bin:$PATH"
done done
''; '';
src = fetchurl { src = fetchurl {
url = ftp://ftp.berlios.de/pub/cdrecord/cdrtools-2.01.tar.bz2; url = ftp://ftp.berlios.de/pub/cdrecord/cdrtools-2.01.tar.bz2;
md5 = "d44a81460e97ae02931c31188fe8d3fd"; md5 = "d44a81460e97ae02931c31188fe8d3fd";
}; };
patches = [./cdrtools-2.01-install.patch]; patches = [./cdrtools-2.01-install.patch];
meta = { meta = {

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
postInstall=postInstall
postInstall() { postInstall() {
# Strip some more stuff # Strip some more stuff

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
preConfigure=preConfigure
preConfigure() { preConfigure() {
cat > .mozconfig <<EOF cat > .mozconfig <<EOF
#. \$topsrcdir/browser/config/mozconfig #. \$topsrcdir/browser/config/mozconfig
@ -20,7 +19,6 @@ ac_add_options --enable-default-toolkit=gtk2
EOF EOF
} }
#postInstall=postInstall
postInstall() { postInstall() {
# Strip some more stuff # Strip some more stuff

View File

@ -1,11 +1,9 @@
source $stdenv/setup source $stdenv/setup
buildPhase=buildPhase
buildPhase() { buildPhase() {
true true
} }
installPhase=installPhase
installPhase() { installPhase() {
set -x set -x

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
postInstall=postInstall
postInstall() { postInstall() {
# Strip some more stuff # Strip some more stuff

View File

@ -5,12 +5,10 @@ export NO_HIDS=TRUE
export PATH=$icu/sbin:$PATH export PATH=$icu/sbin:$PATH
postUnpack=postUnpack
postUnpack() { postUnpack() {
tar xvjf $src_system tar xvjf $src_system
} }
preConfigure=preConfigure
preConfigure() { preConfigure() {
for i in sysui/desktop/share/makefile.mk; do for i in sysui/desktop/share/makefile.mk; do
substituteInPlace $i --replace /bin/bash $shell substituteInPlace $i --replace /bin/bash $shell
@ -23,8 +21,6 @@ preConfigure() {
cd config_office/ cd config_office/
} }
postConfigure=postConfigure
postConfigure() { postConfigure() {
cd .. cd ..
for i in LinuxX86*Env.Set; do for i in LinuxX86*Env.Set; do
@ -35,15 +31,12 @@ postConfigure() {
--replace /usr/lib64/libjpeg.so $libjpeg/lib/libjpeg.so --replace /usr/lib64/libjpeg.so $libjpeg/lib/libjpeg.so
} }
buildPhase=buildPhase
buildPhase() { buildPhase() {
source LinuxX86*Env.Set.sh source LinuxX86*Env.Set.sh
./bootstrap ./bootstrap
dmake # wait a few hours... dmake # wait a few hours...
} }
wrapSOffice() { wrapSOffice() {
local fn=$1 local fn=$1
local arg=$2 local arg=$2
@ -61,8 +54,6 @@ EOF
chmod +x $out/bin/$fn chmod +x $out/bin/$fn
} }
installPhase=installPhase
installPhase() { installPhase() {
ooFiles=$out/lib/openoffice ooFiles=$out/lib/openoffice
@ -85,6 +76,5 @@ installPhase() {
for i in writer calc draw impress base math web; do wrapSOffice oo$i -$i; done for i in writer calc draw impress base math web; do wrapSOffice oo$i -$i; done
} }
genericBuild genericBuild

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
buildPhase=buildPhase
buildPhase() { buildPhase() {
for i in bin/*; do for i in bin/*; do
patchelf \ patchelf \
@ -10,10 +9,9 @@ buildPhase() {
done done
} }
installPhase=installPhase
installPhase() { installPhase() {
ensureDir $out ensureDir $out
cp -prvd * $out/ cp -prvd * $out/
} }
genericBuild genericBuild

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
buildPhase=buildPhase
buildPhase() { buildPhase() {
for i in bin/*; do for i in bin/*; do
patchelf \ patchelf \
@ -10,10 +9,9 @@ buildPhase() {
done done
} }
installPhase=installPhase
installPhase() { installPhase() {
ensureDir $out ensureDir $out
cp -prvd * $out/ cp -prvd * $out/
} }
genericBuild genericBuild

View File

@ -2,7 +2,6 @@ source $stdenv/setup
echo $NIX_GCC echo $NIX_GCC
buildPhase=buildPhase
buildPhase() { buildPhase() {
for i in bin/*; do for i in bin/*; do
patchelf \ patchelf \
@ -12,10 +11,9 @@ buildPhase() {
done done
} }
installPhase=installPhase
installPhase() { installPhase() {
ensureDir $out ensureDir $out
cp -prvd * $out/ cp -prvd * $out/
} }
genericBuild genericBuild

View File

@ -2,7 +2,6 @@ source $stdenv/setup
echo $NIX_GCC echo $NIX_GCC
buildPhase=buildPhase
buildPhase() { buildPhase() {
for i in bin/*; do for i in bin/*; do
patchelf \ patchelf \
@ -12,10 +11,9 @@ buildPhase() {
done done
} }
installPhase=installPhase
installPhase() { installPhase() {
ensureDir $out ensureDir $out
cp -prvd * $out/ cp -prvd * $out/
} }
genericBuild genericBuild

View File

@ -1,11 +0,0 @@
source $stdenv/setup
buildPhase=true
installPhase() {
mkdir $out
cp -prv * $out
}
installPhase=installPhase
genericBuild

View File

@ -1,8 +1,15 @@
{stdenv, fetchurl}: stdenv.mkDerivation { {stdenv, fetchurl}:
stdenv.mkDerivation {
name = "MPlayer-rp9codecs-20050115"; name = "MPlayer-rp9codecs-20050115";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/rp9codecs-20050115.tar.bz2; url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/rp9codecs-20050115.tar.bz2;
sha256 = "353c22e2c992a1c730bdd5fade66a94e1a058e38063d2ce064a6510b70c39677"; sha256 = "353c22e2c992a1c730bdd5fade66a94e1a058e38063d2ce064a6510b70c39677";
}; };
installPhase = ''
mkdir $out
cp -prv * $out
'';
} }

View File

@ -1,11 +0,0 @@
source $stdenv/setup
buildPhase=true
installPhase() {
mkdir $out
cp -prv * $out
}
installPhase=installPhase
genericBuild

View File

@ -3,13 +3,16 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "MPlayer-codecs-essential-20071007"; name = "MPlayer-codecs-essential-20071007";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2; url = http://www2.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2;
sha256 = "18vls12n12rjw0mzw4pkp9vpcfmd1c21rzha19d7zil4hn7fs2ic"; sha256 = "18vls12n12rjw0mzw4pkp9vpcfmd1c21rzha19d7zil4hn7fs2ic";
}; };
installPhase = ''
mkdir $out
cp -prv * $out
'';
meta = { meta = {
license = "unfree"; license = "unfree";
}; };

View File

@ -15,7 +15,6 @@ buildPhase() {
} }
postInstall=postInstall
postInstall() { postInstall() {
sqlDir="$out/share/mythtv/sql" sqlDir="$out/share/mythtv/sql"
ensureDir $sqlDir ensureDir $sqlDir

View File

@ -115,8 +115,6 @@ test -n "$libc" && echo $libc > $out/nix-support/orig-libc
doSubstitute "$addFlags" "$out/nix-support/add-flags.sh" doSubstitute "$addFlags" "$out/nix-support/add-flags.sh"
doSubstitute "$setupHook" "$out/nix-support/setup-hook"
cp -p $utils $out/nix-support/utils.sh cp -p $utils $out/nix-support/utils.sh

View File

@ -3,7 +3,6 @@ source $stdenv/setup
echo $xlibs2 echo $xlibs2
echo $x_libraries_env echo $x_libraries_env
postConfigure=postConfigure
postConfigure() { postConfigure() {
pwd; pwd;
ls -l super*/src/Makefile; ls -l super*/src/Makefile;

View File

@ -47,7 +47,6 @@ else
fi fi
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Determine the frontends to build. # Determine the frontends to build.

View File

@ -38,8 +38,6 @@ EOF
configureFlags="--enable-languages=$langs" configureFlags="--enable-languages=$langs"
} }
preConfigure=preConfigure
postConfigure() { postConfigure() {
if test "$noSysDirs" = "1"; then if test "$noSysDirs" = "1"; then
@ -82,8 +80,6 @@ postConfigure() {
fi fi
} }
postConfigure=postConfigure
buildFlags="bootstrap" buildFlags="bootstrap"

View File

@ -35,7 +35,6 @@ if test "$noSysDirs" = "1"; then
fi fi
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Perform the build in a different directory. # Perform the build in a different directory.
mkdir ../build mkdir ../build
@ -44,7 +43,6 @@ preConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
# Remove precompiled headers for now. They are very big and # Remove precompiled headers for now. They are very big and
# probably not very useful yet. # probably not very useful yet.

View File

@ -54,7 +54,6 @@ if test "$noSysDirs" = "1"; then
fi fi
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Perform the build in a different directory. # Perform the build in a different directory.
mkdir ../build mkdir ../build
@ -63,7 +62,6 @@ preConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
# Remove precompiled headers for now. They are very big and # Remove precompiled headers for now. They are very big and
# probably not very useful yet. # probably not very useful yet.

View File

@ -50,7 +50,6 @@ if test "$noSysDirs" = "1"; then
fi fi
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Perform the build in a different directory. # Perform the build in a different directory.
mkdir ../build mkdir ../build
@ -59,7 +58,6 @@ preConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
# Remove precompiled headers for now. They are very big and # Remove precompiled headers for now. They are very big and
# probably not very useful yet. # probably not very useful yet.

View File

@ -51,7 +51,6 @@ if test "$noSysDirs" = "1"; then
fi fi
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Perform the build in a different directory. # Perform the build in a different directory.
mkdir ../build mkdir ../build
@ -60,7 +59,6 @@ preConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
# Remove precompiled headers for now. They are very big and # Remove precompiled headers for now. They are very big and
# probably not very useful yet. # probably not very useful yet.

View File

@ -51,7 +51,6 @@ if test "$noSysDirs" = "1"; then
fi fi
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Perform the build in a different directory. # Perform the build in a different directory.
mkdir ../build mkdir ../build
@ -60,7 +59,6 @@ preConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
# Remove precompiled headers for now. They are very big and # Remove precompiled headers for now. They are very big and
# probably not very useful yet. # probably not very useful yet.

View File

@ -51,7 +51,6 @@ if test "$noSysDirs" = "1"; then
fi fi
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Determine the frontends to build. # Determine the frontends to build.
@ -72,7 +71,6 @@ preConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
# Remove precompiled headers for now. They are very big and # Remove precompiled headers for now. They are very big and
# probably not very useful yet. # probably not very useful yet.

View File

@ -54,7 +54,6 @@ if test "$noSysDirs" = "1"; then
fi fi
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Perform the build in a different directory. # Perform the build in a different directory.
mkdir ../build mkdir ../build
@ -63,7 +62,6 @@ preConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
# Remove precompiled headers for now. They are very big and # Remove precompiled headers for now. They are very big and
# probably not very useful yet. # probably not very useful yet.

View File

@ -51,7 +51,6 @@ if test "$noSysDirs" = "1"; then
fi fi
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Perform the build in a different directory. # Perform the build in a different directory.
mkdir ../build mkdir ../build
@ -60,7 +59,6 @@ preConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
# Remove precompiled headers for now. They are very big and # Remove precompiled headers for now. They are very big and
# probably not very useful yet. # probably not very useful yet.

View File

@ -9,13 +9,11 @@ configureScript=./Configure
configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags" configureFlags="-de -Dcc=gcc -Dprefix=$out -Uinstallusrbinperl $extraflags"
dontAddPrefix=1 dontAddPrefix=1
preBuild=preBuild
preBuild() { preBuild() {
# Make Cwd work on NixOS (where we don't have a /bin/pwd). # Make Cwd work on NixOS (where we don't have a /bin/pwd).
substituteInPlace lib/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'" substituteInPlace lib/Cwd.pm --replace "'/bin/pwd'" "'$(type -tP pwd)'"
} }
postInstall=postInstall
postInstall() { postInstall() {
ensureDir "$out/nix-support" ensureDir "$out/nix-support"
cp $setupHook $out/nix-support/setup-hook cp $setupHook $out/nix-support/setup-hook

View File

@ -32,18 +32,18 @@ stdenv.mkDerivation {
configureFlags = "--enable-shared"; configureFlags = "--enable-shared";
preConfigure = " preConfigure = ''
# Purity. # Purity.
for i in /usr /sw /opt /pkg; do for i in /usr /sw /opt /pkg; do
substituteInPlace ./setup.py --replace $i /no-such-path substituteInPlace ./setup.py --replace $i /no-such-path
done done
"; '';
setupHook = ./setup-hook.sh;
postInstall = " postInstall = ''
ensureDir $out/nix-support
cp ${./setup-hook.sh} $out/nix-support/setup-hook
rm -rf $out/lib/python2.4/test rm -rf $out/lib/python2.4/test
"; '';
passthru = { passthru = {
inherit zlibSupport; inherit zlibSupport;

View File

@ -53,20 +53,20 @@ stdenv.mkDerivation {
configureFlags = "--enable-shared --with-wctype-functions"; configureFlags = "--enable-shared --with-wctype-functions";
preConfigure = " preConfigure = ''
# Purity. # Purity.
for i in /usr /sw /opt /pkg; do for i in /usr /sw /opt /pkg; do
substituteInPlace ./setup.py --replace $i /no-such-path substituteInPlace ./setup.py --replace $i /no-such-path
done done
" + (if readline != null then '' '' + (if readline != null then ''
export NIX_LDFLAGS="$NIX_LDFLAGS -lncurses" export NIX_LDFLAGS="$NIX_LDFLAGS -lncurses"
'' else ""); '' else "");
setupHook = ./setup-hook.sh;
postInstall = " postInstall = ''
ensureDir $out/nix-support
cp ${./setup-hook.sh} $out/nix-support/setup-hook
rm -rf $out/lib/python2.5/test rm -rf $out/lib/python2.5/test
"; '';
passthru = { passthru = {
inherit zlibSupport; inherit zlibSupport;

View File

@ -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

View File

@ -2,11 +2,19 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "tcl-8.4.18"; name = "tcl-8.4.18";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = mirror://sourceforge/tcl/tcl8.4.18-src.tar.gz; url = mirror://sourceforge/tcl/tcl8.4.18-src.tar.gz;
sha256 = "197h3m2lc5a6famc683zhjp55774gf8zwggfy2893v48lp5p7qny"; sha256 = "197h3m2lc5a6famc683zhjp55774gf8zwggfy2893v48lp5p7qny";
}; };
preConfigure = "cd unix";
postInstall = ''
make install-private-headers
ln -s $out/bin/tclsh8.4 $out/bin/tclsh
'';
meta = { meta = {
description = "The Tcl scription language"; description = "The Tcl scription language";
homepage = http://www.tcl.tk/; homepage = http://www.tcl.tk/;

View File

@ -1,13 +1,11 @@
source $stdenv/setup source $stdenv/setup
configurePhase=configurePhase
configurePhase() { configurePhase() {
cd lib/Xaw3d cd lib/Xaw3d
(mkdir X11 && cd X11 && ln -fs .. Xaw3d) (mkdir X11 && cd X11 && ln -fs .. Xaw3d)
xmkmf xmkmf
} }
buildPhase=buildPhase
buildPhase() { buildPhase() {
make depend $makeFlags make depend $makeFlags
make $makeFlags make $makeFlags
@ -23,4 +21,4 @@ installPhase() {
makeFlags="CDEBUGFLAGS=" # !!! awful hack makeFlags="CDEBUGFLAGS=" # !!! awful hack
genericBuild genericBuild

View File

@ -5,13 +5,9 @@ preConfigure() {
cp $dicts cracklib-dicts/ cp $dicts cracklib-dicts/
} }
preConfigure=preConfigure
postInstall() { postInstall() {
$out/sbin/cracklib-format cracklib-dicts/* | $out/sbin/cracklib-packer cracklib_dict $out/sbin/cracklib-format cracklib-dicts/* | $out/sbin/cracklib-packer cracklib_dict
cp cracklib_dict.* $out/lib cp cracklib_dict.* $out/lib
} }
postInstall=postInstall
genericBuild genericBuild

View File

@ -4,11 +4,9 @@ preConfigure() {
cd build_unix cd build_unix
configureScript=../dist/configure configureScript=../dist/configure
} }
preConfigure=preConfigure
postInstall() { postInstall() {
rm -rf $out/docs rm -rf $out/docs
} }
postInstall=postInstall
genericBuild genericBuild

View File

@ -1,8 +1,10 @@
{stdenv, fetchurl, cxxSupport ? true, compat185 ? true}: {stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
stdenv.mkDerivation ({ stdenv.mkDerivation {
name = "db4-4.4.20"; name = "db4-4.4.20";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
urls = [ urls = [
http://download.oracle.com/berkeley-db/db-4.4.20.NC.tar.gz http://download.oracle.com/berkeley-db/db-4.4.20.NC.tar.gz
@ -10,8 +12,11 @@ stdenv.mkDerivation ({
]; ];
md5 = "afd9243ea353bbaa04421488d3b37900"; md5 = "afd9243ea353bbaa04421488d3b37900";
}; };
configureFlags = [ configureFlags = [
(if cxxSupport then "--enable-cxx" else "--disable-cxx") (if cxxSupport then "--enable-cxx" else "--disable-cxx")
(if compat185 then "--enable-compat185" else "--disable-compat185") (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 ];
}

View File

@ -2,14 +2,18 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "db4-4.5.20"; name = "db4-4.5.20";
builder = ./builder.sh; builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://download-east.oracle.com/berkeley-db/db-4.5.20.tar.gz; url = http://download-east.oracle.com/berkeley-db/db-4.5.20.tar.gz;
md5 = "b0f1c777708cb8e9d37fb47e7ed3312d"; md5 = "b0f1c777708cb8e9d37fb47e7ed3312d";
}; };
configureFlags = [ configureFlags = [
(if cxxSupport then "--enable-cxx" else "--disable-cxx") (if cxxSupport then "--enable-cxx" else "--disable-cxx")
(if compat185 then "--enable-compat185" else "--disable-compat185") (if compat185 then "--enable-compat185" else "--disable-compat185")
]; ];
patches = [./cygwin-4.5.patch ./register-race-fix.patch]; patches = [./cygwin-4.5.patch ./register-race-fix.patch];
} }

View File

@ -8,7 +8,6 @@ source $stdenv/setup
export PWD_P=$(type -tP pwd) export PWD_P=$(type -tP pwd)
postUnpack=postUnpack
postUnpack() { postUnpack() {
cd $sourceRoot cd $sourceRoot
unpackFile $linuxthreadsSrc unpackFile $linuxthreadsSrc
@ -16,7 +15,6 @@ postUnpack() {
} }
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Use Linuxthreads instead of NPTL. # Use Linuxthreads instead of NPTL.
@ -34,7 +32,6 @@ preConfigure() {
} }
postConfigure=postConfigure
postConfigure() { postConfigure() {
# Hack: get rid of the `-static' flag set by the bootstrap stdenv. # Hack: get rid of the `-static' flag set by the bootstrap stdenv.
# This has to be done *after* `configure' because it builds some # This has to be done *after* `configure' because it builds some
@ -44,7 +41,6 @@ postConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
if test -n "$installLocales"; then if test -n "$installLocales"; then
make localedata/install-locales make localedata/install-locales

View File

@ -11,7 +11,6 @@ export PWD_P=$(type -tP pwd)
export BASH_SHELL=$SHELL export BASH_SHELL=$SHELL
preConfigure=preConfigure
preConfigure() { preConfigure() {
for i in configure io/ftwtest-sh; do for i in configure io/ftwtest-sh; do
@ -34,7 +33,6 @@ preConfigure() {
} }
postConfigure=postConfigure
postConfigure() { postConfigure() {
# Hack: get rid of the `-static' flag set by the bootstrap stdenv. # Hack: get rid of the `-static' flag set by the bootstrap stdenv.
# This has to be done *after* `configure' because it builds some # This has to be done *after* `configure' because it builds some
@ -44,7 +42,6 @@ postConfigure() {
} }
postInstall=postInstall
postInstall() { postInstall() {
if test -n "$installLocales"; then if test -n "$installLocales"; then
make localedata/install-locales make localedata/install-locales

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Workarounds for the ancient libtool shipped by libjpeg. # Workarounds for the ancient libtool shipped by libjpeg.
ln -s $libtool/bin/libtool . ln -s $libtool/bin/libtool .
@ -8,7 +7,6 @@ preConfigure() {
cp $libtool/share/libtool/config.sub . cp $libtool/share/libtool/config.sub .
} }
preInstall=preInstall
preInstall() { preInstall() {
mkdir $out mkdir $out
mkdir $out/bin mkdir $out/bin
@ -18,7 +16,6 @@ preInstall() {
mkdir $out/man/man1 mkdir $out/man/man1
} }
patchPhase=patchPhase
patchPhase() { patchPhase() {
for i in $patches; do for i in $patches; do
patch < $i patch < $i

View File

@ -1,10 +1,6 @@
source $stdenv/setup source $stdenv/setup
ensureDir $out/nix-support
substitute "$hook" "$out/nix-support/setup-hook" --subst-var out
preConfigure=preConfigure
preConfigure() { preConfigure() {
# Patch some of the configure files a bit to get of global paths. # Patch some of the configure files a bit to get of global paths.
@ -30,7 +26,6 @@ configureScript() {
} }
postInstall=postInstall
postInstall() { postInstall() {
# Qt's `make install' is broken; it copies ./bin/qmake, which # Qt's `make install' is broken; it copies ./bin/qmake, which
# is a symlink to ./qmake/qmake. So we end up with a dangling # is a symlink to ./qmake/qmake. So we end up with a dangling

View File

@ -21,7 +21,9 @@ stdenv.mkDerivation {
name = "qt-3.3.8"; name = "qt-3.3.8";
builder = ./builder.sh; builder = ./builder.sh;
hook = ./setup-hook.sh;
setupHook = ./setup-hook.sh;
src = fetchurl { src = fetchurl {
url = ftp://ftp.trolltech.com/qt/source/qt-x11-free-3.3.8.tar.bz2; url = ftp://ftp.trolltech.com/qt/source/qt-x11-free-3.3.8.tar.bz2;
sha256 = "0jd4g3bwkgk2s4flbmgisyihm7cam964gzb3pawjlkhas01zghz8"; sha256 = "0jd4g3bwkgk2s4flbmgisyihm7cam964gzb3pawjlkhas01zghz8";

View File

@ -6,16 +6,13 @@ configurePhase() {
--replace "/usr/local/lib" "$sqlite/lib" --replace "/usr/local/lib" "$sqlite/lib"
cp setup.cfg /tmp cp setup.cfg /tmp
} }
configurePhase=configurePhase
buildPhase() { buildPhase() {
$python/bin/python setup.py build $python/bin/python setup.py build
} }
buildPhase=buildPhase
installPhase() { installPhase() {
$python/bin/python setup.py install --prefix=$out $python/bin/python setup.py install --prefix=$out
} }
installPhase=installPhase
genericBuild genericBuild

View File

@ -5,16 +5,13 @@ flags="WXPORT=gtk2 NO_HEADERS=1 BUILD_GLCANVAS=0 BUILD_OGL=0 UNICODE=1"
configurePhase() { configurePhase() {
cd wxPython cd wxPython
} }
configurePhase=configurePhase
buildPhase() { buildPhase() {
python setup.py $flags build python setup.py $flags build
} }
buildPhase=buildPhase
installPhase() { installPhase() {
python setup.py $flags install --prefix=$out python setup.py $flags install --prefix=$out
} }
installPhase=installPhase
genericBuild genericBuild

View File

@ -2,16 +2,14 @@ source $stdenv/setup
set -e set -e
configurePhase=configurePhase
configurePhase() { configurePhase() {
tar zxvf $src tar zxvf $src
cd jikespg/src cd jikespg/src
} }
installPhase=installPhase
installPhase() { installPhase() {
ensureDir $out/bin ensureDir $out/bin
cp jikespg $out/bin cp jikespg $out/bin
} }
genericBuild genericBuild

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
postInstall=postInstall
postInstall() { postInstall() {
ensureDir $out/share/exult/music ensureDir $out/share/exult/music
for i in $musicFiles; do for i in $musicFiles; do

View File

@ -1,12 +0,0 @@
source $stdenv/setup
export installFlags="PREFIX=$out"
preBuild() {
cp $config .config
make include/bb_config.h
}
preBuild=preBuild
genericBuild

View File

@ -2,7 +2,6 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "busybox-1.2.2.1"; name = "busybox-1.2.2.1";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://busybox.net/downloads/busybox-1.2.2.1.tar.bz2; url = http://busybox.net/downloads/busybox-1.2.2.1.tar.bz2;
@ -10,7 +9,13 @@ stdenv.mkDerivation {
}; };
# inherit gccCross; # inherit gccCross;
# buildinputs = [binutilsCross]; # buildinputs = [binutilsCross];
# fixme, need a decent config for MIPS or so # 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
'';
} }

View File

@ -1,11 +1,9 @@
source $stdenv/setup source $stdenv/setup
preConfigure=preConfigure
preConfigure() { preConfigure() {
cd src cd src
} }
postInstall=postInstall
postInstall() { postInstall() {
romsDir=$out/share/atari800/roms romsDir=$out/share/atari800/roms
ensureDir $romsDir ensureDir $romsDir

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
preConfigure=preConfigure
preConfigure() { preConfigure() {
# "ijs" is impure: it contains symlinks to /usr/share/automake etc.! # "ijs" is impure: it contains symlinks to /usr/share/automake etc.!
rm -rf ijs/ltmain.sh rm -rf ijs/ltmain.sh
@ -11,7 +10,6 @@ preConfigure() {
installTargets="install install-so install-data install-doc install-man" installTargets="install install-so install-data install-doc install-man"
postInstall=postInstall
postInstall() { postInstall() {
for i in $fonts; do for i in $fonts; do
(cd $out/share/ghostscript && tar xvfz $i) (cd $out/share/ghostscript && tar xvfz $i)

View File

@ -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

View File

@ -2,12 +2,18 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "linuxwacom-0.7.2"; name = "linuxwacom-0.7.2";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://nixos.org/tarballs/linuxwacom-0.7.2.tar.bz2; url = http://nixos.org/tarballs/linuxwacom-0.7.2.tar.bz2;
md5 = "3f6290101d5712a24097243ca9f092ed"; md5 = "3f6290101d5712a24097243ca9f092ed";
}; };
buildInputs = [libX11 libXi]; 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
'';
} }

View File

@ -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

View File

@ -5,17 +5,27 @@ assert hotplugSupport -> stdenv.system == "i686-linux";
stdenv.mkDerivation { stdenv.mkDerivation {
name = "sane-backends-1.0.18"; name = "sane-backends-1.0.18";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.18/sane-backends-1.0.18.tar.gz; url = ftp://ftp.sane-project.org/pub/sane/sane-backends-1.0.18/sane-backends-1.0.18.tar.gz;
md5 = "7ca7e2908e24721471de92cf40c75e60"; md5 = "7ca7e2908e24721471de92cf40c75e60";
}; };
udevSupport = hotplugSupport; udevSupport = hotplugSupport;
buildInputs = (if libusb != null then [libusb] else []); buildInputs = if libusb != null then [libusb] else [];
preInstall = (if gt68xxFirmware != null then postInstall = ''
"mkdir -p \${out}/share/sane/gt68xx ; ln -s " + if test "$udevSupport" = "1"; then
(gt68xxFirmware {inherit fetchurl;})+ " \${out}/share/sane/gt68xx/PS1fw.usb " ensureDir $out/etc/udev/rules.d/
else ""); 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 "";
} }

View File

@ -19,10 +19,4 @@ configureFlags="\
--with-system-ncurses \ --with-system-ncurses \
" "
postInstall() {
ensureDir "$out/nix-support"
cp $setupHook $out/nix-support/setup-hook
}
postInstall=postInstall
genericBuild genericBuild

View File

@ -3,7 +3,6 @@ source $stdenv/setup
makeFlags="prefix=$out" makeFlags="prefix=$out"
installFlags="prefix=$out" installFlags="prefix=$out"
postInstall=postInstall
postInstall() { postInstall() {
(cd $out && ln -s lib-* lib) (cd $out && ln -s lib-* lib)
(cd $out/lib && ln -s start.o crt1.o) (cd $out/lib && ln -s start.o crt1.o)

View File

@ -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

View File

@ -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];
}

View File

@ -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

View File

@ -5,8 +5,6 @@ buildPhase() {
make include/linux/version.h make include/linux/version.h
} }
buildPhase=buildPhase
installPhase() { installPhase() {
mkdir $out mkdir $out
@ -29,7 +27,5 @@ installPhase() {
echo -n > $out/include/linux/autoconf.h echo -n > $out/include/linux/autoconf.h
} }
installPhase=installPhase
genericBuild genericBuild

View File

@ -1,7 +1,6 @@
source $stdenv/setup source $stdenv/setup
configurePhase=configurePhase
configurePhase() { configurePhase() {
if test -n "$preConfigure"; then if test -n "$preConfigure"; then
eval "$preConfigure"; eval "$preConfigure";
@ -56,7 +55,6 @@ configurePhase() {
} }
installPhase=installPhase
installPhase() { installPhase() {
ensureDir $out ensureDir $out

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
preBuild=preBuild
preBuild() { preBuild() {
mkdir -p linux/include mkdir -p linux/include
cp -prd $kernel/lib/modules/*/build/include/* linux/include/ cp -prd $kernel/lib/modules/*/build/include/* linux/include/

View File

@ -10,6 +10,4 @@ preInstall() {
make install-program make install-program
} }
preInstall=preInstall
genericBuild genericBuild

View File

@ -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

View File

@ -2,10 +2,21 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "squashfs-3.3"; name = "squashfs-3.3";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = mirror://sourceforge/squashfs/squashfs3.3.tgz; url = mirror://sourceforge/squashfs/squashfs3.3.tgz;
sha256 = "1j55m26nyvlbld4yxad0r6s1f4rdw9yg89y2gv93ihkx3rx048w4"; sha256 = "1j55m26nyvlbld4yxad0r6s1f4rdw9yg89y2gv93ihkx3rx048w4";
}; };
buildInputs = [zlib]; buildInputs = [zlib];
preBuild = ''
cd squashfs-tools
'';
installPhase = ''
ensureDir $out/sbin
cp mksquashfs $out/sbin
cp unsquashfs $out/sbin
'';
} }

View File

@ -4,7 +4,6 @@ makeFlagsArray=(LCRYPT=-lcrypt BIN_OWNER=$(id -u) BIN_GROUP=$(id -g) ROOT=$out)
preBuild="cd src" preBuild="cd src"
preInstall=preInstall
preInstall() { preInstall() {
substituteInPlace Makefile --replace /usr / substituteInPlace Makefile --replace /usr /
mkdir $out mkdir $out
@ -18,7 +17,6 @@ preInstall() {
mkdir $out/share/man/man8 mkdir $out/share/man/man8
} }
postInstall=postInstall
postInstall() { postInstall() {
if test -n "$withoutInitTools"; then if test -n "$withoutInitTools"; then
mv $out/sbin/killall5 $out/bin mv $out/sbin/killall5 $out/bin

View File

@ -1,4 +1,3 @@
preInstall=preInstall
preInstall() { preInstall() {
ensureDir $out/lib/X11/config ensureDir $out/lib/X11/config
ln -s $xorgcffiles/lib/X11/config/* $out/lib/X11/config ln -s $xorgcffiles/lib/X11/config/* $out/lib/X11/config

View File

@ -3,7 +3,6 @@
# NixOS, so force Make to search in our own Glibc. # NixOS, so force Make to search in our own Glibc.
export VPATH=$(cat ${NIX_GCC}/nix-support/orig-libc)/lib export VPATH=$(cat ${NIX_GCC}/nix-support/orig-libc)/lib
preConfigure=preConfigure
preConfigure() { preConfigure() {
unpackFile $mesaSrc unpackFile $mesaSrc
configureFlags="$configureFlags --with-mesa-source=$(ls -d $(pwd)/Mesa-*)" configureFlags="$configureFlags --with-mesa-source=$(ls -d $(pwd)/Mesa-*)"

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
buildPhase=buildPhase
buildPhase() { buildPhase() {
xmkmf xmkmf
make World make World
@ -18,7 +17,6 @@ buildPhase() {
cd .. cd ..
} }
installPhase=installPhase
installPhase() { installPhase() {
ensureDir $out/bin ensureDir $out/bin
ensureDir $out/man/man1 ensureDir $out/man/man1

View File

@ -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

View File

@ -2,13 +2,17 @@
stdenv.mkDerivation { stdenv.mkDerivation {
name = "unzip-5.52"; name = "unzip-5.52";
builder = ./builder.sh;
src = fetchurl { src = fetchurl {
url = http://nixos.org/tarballs/unzip552.tar.gz; url = http://nixos.org/tarballs/unzip552.tar.gz;
md5 = "9d23919999d6eac9217d1f41472034a9"; md5 = "9d23919999d6eac9217d1f41472034a9";
}; };
buildPhase = "make -f unix/Makefile generic";
installPhase = "make -f unix/Makefile prefix=$out install";
meta = { meta = {
homepage = http://www.info-zip.org; homepage = http://www.info-zip.org;
}; };
} }

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
installPhase=installPhase
installPhase() { installPhase() {
ensureDir $out/bin ensureDir $out/bin
cp -p zdc zdu $out/bin cp -p zdc zdu $out/bin

View File

@ -4,14 +4,10 @@ preBuild() {
cd src cd src
} }
preBuild=preBuild
preInstall() { preInstall() {
ensureDir $out/bin ensureDir $out/bin
} }
preInstall=preInstall
postInstall() { postInstall() {
# Install the "prefabs". # Install the "prefabs".
ensureDir $out/share/ploticus/prefabs && \ ensureDir $out/share/ploticus/prefabs && \
@ -34,7 +30,4 @@ EOF
ln -s "$out/man/man1/pl.1" "$out/man/man1/ploticus.1" ln -s "$out/man/man1/pl.1" "$out/man/man1/ploticus.1"
} }
postInstall=postInstall
genericBuild genericBuild

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
patchPhase=patchPhase
patchPhase() { patchPhase() {
for i in $patches; do for i in $patches; do
header "applying patch $i" 3 header "applying patch $i" 3
@ -25,14 +24,12 @@ configureImakefiles() {
cp tmpsed transfig/Imakefile cp tmpsed transfig/Imakefile
} }
buildPhase=buildPhase
buildPhase() { buildPhase() {
xmkmf xmkmf
make Makefiles make Makefiles
make make
} }
preInstall=preInstall
preInstall() { preInstall() {
ensureDir $out ensureDir $out
ensureDir $out/lib ensureDir $out/lib

View File

@ -9,7 +9,6 @@ makeFlagsArray=(CLIENT_PATH='\"FAKE_PATH=/nothing\"' \
LIBDIR=$out/lib INCDIR=$out/include VARDB=$OUT/var/run \ LIBDIR=$out/lib INCDIR=$out/include VARDB=$OUT/var/run \
) )
configurePhase=configurePhase
configurePhase() { configurePhase() {
# Patch the header that contains absolute paths to the tools. # Patch the header that contains absolute paths to the tools.
sed -i "includes/dhcpd.h" \ sed -i "includes/dhcpd.h" \
@ -18,7 +17,6 @@ configurePhase() {
./configure ./configure
} }
preBuild=preBuild
preBuild() { preBuild() {
substituteInPlace client/scripts/linux --replace /bin/bash $shell substituteInPlace client/scripts/linux --replace /bin/bash $shell
} }

View File

@ -1,6 +1,5 @@
source $stdenv/setup source $stdenv/setup
preConfigure=preConfigure
preConfigure() { preConfigure() {
if test -n "$idea"; then if test -n "$idea"; then
gunzip < $idea > ./cipher/idea.c gunzip < $idea > ./cipher/idea.c

View File

@ -4615,11 +4615,6 @@ let
inherit fetchurl stdenv pkgconfig libdaemon; 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 { iproute = import ../os-specific/linux/iproute {
inherit fetchurl stdenv flex bison db4; inherit fetchurl stdenv flex bison db4;
}; };