nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 17.09 38 lines 944 B view raw
1{ stdenv, fetchurl, python, pkgconfig, readline, tdb, talloc, tevent 2, popt, libxslt, docbook_xsl, docbook_xml_dtd_42 3}: 4 5stdenv.mkDerivation rec { 6 name = "ldb-1.1.27"; 7 8 src = fetchurl { 9 url = "mirror://samba/ldb/${name}.tar.gz"; 10 sha256 = "1b1mkl5p8swb67s9aswavhzswlib34hpgsv66zgns009paf2df6d"; 11 }; 12 13 outputs = [ "out" "dev" ]; 14 15 buildInputs = [ 16 python pkgconfig readline tdb talloc tevent popt 17 libxslt docbook_xsl docbook_xml_dtd_42 18 ]; 19 20 preConfigure = '' 21 sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf 22 ''; 23 24 configureFlags = [ 25 "--bundled-libraries=NONE" 26 "--builtin-libraries=replace" 27 ]; 28 29 stripDebugList = "bin lib modules"; 30 31 meta = with stdenv.lib; { 32 description = "A LDAP-like embedded database"; 33 homepage = http://ldb.samba.org/; 34 license = licenses.lgpl3Plus; 35 maintainers = with maintainers; [ wkennington ]; 36 platforms = platforms.all; 37 }; 38}