2015-01-03 01:20:29 +00:00
|
|
|
{ stdenv, fetchurl, python, pkgconfig, readline, tdb, talloc, tevent
|
2018-04-29 03:13:12 +01:00
|
|
|
, popt, libxslt, docbook_xsl, docbook_xml_dtd_42, cmocka
|
2014-04-30 08:42:02 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-05-07 10:39:43 +01:00
|
|
|
name = "ldb-1.3.3";
|
2014-04-30 08:42:02 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-02-08 21:29:27 +00:00
|
|
|
url = "mirror://samba/ldb/${name}.tar.gz";
|
2018-05-07 10:39:43 +01:00
|
|
|
sha256 = "14gsrm7dvyjpbpnc60z75j6fz2p187abm2h353lq95kx2bv70c1b" ;
|
2014-04-30 08:42:02 +01:00
|
|
|
};
|
|
|
|
|
2016-09-19 14:33:35 +01:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-04-30 08:42:02 +01:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
python readline tdb talloc tevent popt
|
2014-04-30 08:42:02 +01:00
|
|
|
libxslt docbook_xsl docbook_xml_dtd_42
|
2018-04-29 03:13:12 +01:00
|
|
|
cmocka
|
2014-04-30 08:42:02 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
2015-01-03 01:20:29 +00:00
|
|
|
sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf
|
2014-04-30 08:42:02 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--bundled-libraries=NONE"
|
|
|
|
"--builtin-libraries=replace"
|
|
|
|
];
|
|
|
|
|
2016-09-19 14:33:35 +01:00
|
|
|
stripDebugList = "bin lib modules";
|
|
|
|
|
2014-04-30 08:42:02 +01:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 11:53:46 +01:00
|
|
|
description = "A LDAP-like embedded database";
|
2018-06-23 12:34:55 +01:00
|
|
|
homepage = https://ldb.samba.org/;
|
2014-04-30 08:42:02 +01:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|