1{ stdenv, fetchurl, python, pkgconfig, readline, libxslt
2, docbook_xsl, docbook_xml_dtd_42
3}:
4
5stdenv.mkDerivation rec {
6 name = "talloc-2.1.3";
7
8 src = fetchurl {
9 url = "mirror://samba/talloc/${name}.tar.gz";
10 sha256 = "1c1c3zs13qyripjwcjpz2hqc3p9p50m5yl95gdrrrvyl49dzg9bs";
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 "--enable-talloc-compat1"
23 "--bundled-libraries=NONE"
24 "--builtin-libraries=replace"
25 ];
26
27 postInstall = ''
28 ar qf $out/lib/libtalloc.a bin/default/talloc_5.o
29 '';
30
31 meta = with stdenv.lib; {
32 description = "Hierarchical pool based memory allocator with destructors";
33 homepage = http://tdb.samba.org/;
34 license = licenses.gpl3;
35 maintainers = with maintainers; [ wkennington ];
36 platforms = platforms.all;
37 };
38}