@@ -0,0 +1,33 @@
1+{ stdenv, fetchurl, python, pkgconfig, readline, libxslt
2+, docbook_xsl, docbook_xml_dtd_42
3+}:
4+
5+stdenv.mkDerivation rec {
6+ name = "ntdb-1.0";
7+
8+ src = fetchurl {
9+ url = "http://samba.org/ftp/tdb/${name}.tar.gz";
10+ sha256 = "0jdzgrz5sr25k83yrw7wqb3r0yj1v04z4s3lhsmnr5z6n5ifhyl1";
11+ };
12+
13+ buildInputs = [
14+ python pkgconfig readline libxslt docbook_xsl docbook_xml_dtd_42
15+ ];
16+
17+ preConfigure = ''
18+ sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf
19+ '';
20+
21+ configureFlags = [
22+ "--bundled-libraries=NONE"
23+ "--builtin-libraries=replace,ccan"
24+ ];
25+
26+ meta = with stdenv.lib; {
27+ description = "The not-so trivial database";
28+ homepage = http://tdb.samba.org/;
29+ license = licenses.lgpl3Plus;
30+ maintainers = with maintainers; [ wkennington ];
31+ platforms = platforms.all;
32+ };
33+}