2020-03-31 02:34:20 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2020-03-31 03:13:44 +00:00
|
|
|
, python3
|
2020-03-31 02:34:20 +00:00
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, tdb
|
|
|
|
, talloc
|
|
|
|
, tevent
|
|
|
|
, popt
|
|
|
|
, libxslt
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_42
|
|
|
|
, cmocka
|
|
|
|
, wafHook
|
2014-04-30 07:42:02 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-31 02:34:20 +00:00
|
|
|
pname = "ldb";
|
2020-05-22 05:49:18 +00:00
|
|
|
version = "2.1.3";
|
2014-04-30 07:42:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-31 02:34:20 +00:00
|
|
|
url = "mirror://samba/ldb/${pname}-${version}.tar.gz";
|
2020-05-22 05:49:18 +00:00
|
|
|
sha256 = "0xkps414ndb87abla7dlv44ndnfg5r5vwgmkm3ngcq9knbv1x6w7";
|
2014-04-30 07:42:02 +00:00
|
|
|
};
|
|
|
|
|
2016-09-19 13:33:35 +00:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2020-03-31 02:34:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2020-03-31 03:13:44 +00:00
|
|
|
python3
|
2020-03-31 02:34:20 +00:00
|
|
|
wafHook
|
2020-03-31 03:13:44 +00:00
|
|
|
libxslt
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_42
|
2020-03-31 02:34:20 +00:00
|
|
|
];
|
|
|
|
|
2014-04-30 07:42:02 +00:00
|
|
|
buildInputs = [
|
2020-03-31 03:13:44 +00:00
|
|
|
python3
|
|
|
|
readline # required to build python
|
2020-03-31 02:34:20 +00:00
|
|
|
tdb
|
|
|
|
talloc
|
|
|
|
tevent
|
|
|
|
popt
|
2018-04-29 02:13:12 +00:00
|
|
|
cmocka
|
2014-04-30 07:42:02 +00:00
|
|
|
];
|
|
|
|
|
2020-03-31 02:34:20 +00:00
|
|
|
wafPath = "buildtools/bin/waf";
|
2014-04-30 07:42:02 +00:00
|
|
|
|
2020-03-31 02:34:20 +00:00
|
|
|
wafConfigureFlags = [
|
2014-04-30 07:42:02 +00:00
|
|
|
"--bundled-libraries=NONE"
|
|
|
|
"--builtin-libraries=replace"
|
2020-03-31 03:13:44 +00:00
|
|
|
"--without-ldb-lmdb"
|
2014-04-30 07:42:02 +00:00
|
|
|
];
|
|
|
|
|
2020-04-07 03:32:19 +00:00
|
|
|
stripDebugList = [ "bin" "lib" "modules" ];
|
2016-09-19 13:33:35 +00:00
|
|
|
|
2014-04-30 07:42:02 +00:00
|
|
|
meta = with stdenv.lib; {
|
2016-06-20 10:53:46 +00:00
|
|
|
description = "A LDAP-like embedded database";
|
2020-03-31 02:34:20 +00:00
|
|
|
homepage = "https://ldb.samba.org/";
|
2014-04-30 07:42:02 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|