* Remove docs/ after build.

svn path=/nixpkgs/trunk/; revision=912
This commit is contained in:
Eelco Dolstra 2004-04-05 09:34:43 +00:00
parent beaff0a892
commit b874f68d80
2 changed files with 20 additions and 8 deletions

View File

@ -1,8 +1,14 @@
. $stdenv/setup || exit 1
. $stdenv/setup
tar xvfz $src || exit 1
cd db-*/build_unix || exit 1
../dist/configure --prefix=$out --enable-cxx --enable-compat185 || exit 1
make || exit 1
make install || exit 1
rm -rf $out/doc || exit 1
preConfigure() {
cd build_unix
configureScript=../dist/configure
}
preConfigure=preConfigure
postInstall() {
rm -rf $out/docs
}
postInstall=postInstall
genericBuild

View File

@ -1,8 +1,14 @@
{stdenv, fetchurl}: stdenv.mkDerivation {
{stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
stdenv.mkDerivation {
name = "db4-4.2.52";
builder = ./builder.sh;
src = fetchurl {
url = http://www.sleepycat.com/update/snapshot/db-4.2.52.tar.gz;
md5 = "cbc77517c9278cdb47613ce8cb55779f";
};
configureFlags = [
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
(if cxxSupport then "--enable-compat185" else "--disable-compat185")
];
}