at 18.09-beta 992 B view raw
1{ stdenv, fetchurl, python, pkgconfig, readline, libxslt 2, docbook_xsl, docbook_xml_dtd_42 3}: 4 5stdenv.mkDerivation rec { 6 name = "talloc-2.1.14"; 7 8 src = fetchurl { 9 url = "mirror://samba/talloc/${name}.tar.gz"; 10 sha256 = "1kk76dyav41ip7ddbbf04yfydb4jvywzi2ps0z2vla56aqkn11di"; 11 }; 12 13 nativeBuildInputs = [ pkgconfig ]; 14 buildInputs = [ 15 python readline libxslt docbook_xsl docbook_xml_dtd_42 16 ]; 17 18 preConfigure = '' 19 sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf 20 ''; 21 22 configureFlags = [ 23 "--enable-talloc-compat1" 24 "--bundled-libraries=NONE" 25 "--builtin-libraries=replace" 26 ]; 27 28 postInstall = '' 29 ar q $out/lib/libtalloc.a bin/default/talloc_[0-9]*.o 30 ''; 31 32 meta = with stdenv.lib; { 33 description = "Hierarchical pool based memory allocator with destructors"; 34 homepage = https://tdb.samba.org/; 35 license = licenses.gpl3; 36 maintainers = with maintainers; [ wkennington ]; 37 platforms = platforms.all; 38 }; 39}