3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/ldb/default.nix
2018-06-23 04:34:55 -07:00

41 lines
1.1 KiB
Nix

{ stdenv, fetchurl, python, pkgconfig, readline, tdb, talloc, tevent
, popt, libxslt, docbook_xsl, docbook_xml_dtd_42, cmocka
}:
stdenv.mkDerivation rec {
name = "ldb-1.3.3";
src = fetchurl {
url = "mirror://samba/ldb/${name}.tar.gz";
sha256 = "14gsrm7dvyjpbpnc60z75j6fz2p187abm2h353lq95kx2bv70c1b" ;
};
outputs = [ "out" "dev" ];
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
python readline tdb talloc tevent popt
libxslt docbook_xsl docbook_xml_dtd_42
cmocka
];
preConfigure = ''
sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf
'';
configureFlags = [
"--bundled-libraries=NONE"
"--builtin-libraries=replace"
];
stripDebugList = "bin lib modules";
meta = with stdenv.lib; {
description = "A LDAP-like embedded database";
homepage = https://ldb.samba.org/;
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ wkennington ];
platforms = platforms.all;
};
}