13 stdenv.mkDerivation rec {
18 url = "mirror://samba/tdb/${pname}-${version}.tar.gz";
19 hash = "sha256-CsImBz46LbhkjaevdEy5X1B2alL+6wAdVYsrMht0p2U=";
33 readline # required to build python
37 # otherwise the configure script fails with
38 # PYTHONHASHSEED=1 missing! Don't use waf directly, use ./configure and make!
40 export PKGCONFIG="$PKG_CONFIG"
41 export PYTHONHASHSEED=1
44 wafPath = "buildtools/bin/waf";
47 "--bundled-libraries=NONE"
48 "--builtin-libraries=replace"
51 postFixup = if stdenv.isDarwin
52 then ''install_name_tool -id $out/lib/libtdb.dylib $out/lib/libtdb.dylib''
55 # python-config from build Python gives incorrect values when cross-compiling.
56 # If python-config is not found, the build falls back to using the sysconfig
57 # module, which works correctly in all cases.
58 PYTHON_CONFIG = "/invalid";
61 description = "The trivial database";
63 TDB is a Trivial Database. In concept, it is very much like GDBM,
64 and BSD's DB except that it allows multiple simultaneous writers
65 and uses locking internally to keep writers from trampling on each
66 other. TDB is also extremely small.
68 homepage = "https://tdb.samba.org/";
69 license = licenses.lgpl3Plus;
70 platforms = platforms.all;