nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 42 lines 1.2 kB view raw
1{ stdenv, fetchurl, python, pkgconfig, readline, libxslt 2, docbook_xsl, docbook_xml_dtd_42, fixDarwinDylibNames 3, buildPackages 4}: 5 6stdenv.mkDerivation rec { 7 name = "talloc-2.1.14"; 8 9 src = fetchurl { 10 url = "mirror://samba/talloc/${name}.tar.gz"; 11 sha256 = "1kk76dyav41ip7ddbbf04yfydb4jvywzi2ps0z2vla56aqkn11di"; 12 }; 13 14 nativeBuildInputs = [ pkgconfig fixDarwinDylibNames python 15 docbook_xsl docbook_xml_dtd_42 ]; 16 buildInputs = [ readline libxslt ]; 17 18 prePatch = '' 19 patchShebangs buildtools/bin/waf 20 ''; 21 22 configureFlags = [ 23 "--enable-talloc-compat1" 24 "--bundled-libraries=NONE" 25 "--builtin-libraries=replace" 26 ] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ 27 "--cross-compile" 28 "--cross-execute=${stdenv.hostPlatform.emulator buildPackages}" 29 ]; 30 configurePlatforms = []; 31 32 postInstall = '' 33 ${stdenv.cc.targetPrefix}ar q $out/lib/libtalloc.a bin/default/talloc_[0-9]*.o 34 ''; 35 36 meta = with stdenv.lib; { 37 description = "Hierarchical pool based memory allocator with destructors"; 38 homepage = https://tdb.samba.org/; 39 license = licenses.gpl3; 40 platforms = platforms.all; 41 }; 42}