* Remove docs/ after build.
svn path=/nixpkgs/trunk/; revision=912
This commit is contained in:
parent
beaff0a892
commit
b874f68d80
|
@ -1,8 +1,14 @@
|
||||||
. $stdenv/setup || exit 1
|
. $stdenv/setup
|
||||||
|
|
||||||
tar xvfz $src || exit 1
|
preConfigure() {
|
||||||
cd db-*/build_unix || exit 1
|
cd build_unix
|
||||||
../dist/configure --prefix=$out --enable-cxx --enable-compat185 || exit 1
|
configureScript=../dist/configure
|
||||||
make || exit 1
|
}
|
||||||
make install || exit 1
|
preConfigure=preConfigure
|
||||||
rm -rf $out/doc || exit 1
|
|
||||||
|
postInstall() {
|
||||||
|
rm -rf $out/docs
|
||||||
|
}
|
||||||
|
postInstall=postInstall
|
||||||
|
|
||||||
|
genericBuild
|
||||||
|
|
|
@ -1,8 +1,14 @@
|
||||||
{stdenv, fetchurl}: stdenv.mkDerivation {
|
{stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
name = "db4-4.2.52";
|
name = "db4-4.2.52";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.sleepycat.com/update/snapshot/db-4.2.52.tar.gz;
|
url = http://www.sleepycat.com/update/snapshot/db-4.2.52.tar.gz;
|
||||||
md5 = "cbc77517c9278cdb47613ce8cb55779f";
|
md5 = "cbc77517c9278cdb47613ce8cb55779f";
|
||||||
};
|
};
|
||||||
|
configureFlags = [
|
||||||
|
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
|
||||||
|
(if cxxSupport then "--enable-compat185" else "--disable-compat185")
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue