2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-03-31 02:34:20 +00:00
|
|
|
, 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";
|
2021-04-02 13:05:16 +00:00
|
|
|
version = "2.3.0";
|
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";
|
2021-04-02 13:05:16 +00:00
|
|
|
sha256 = "0bcjj4gv48ddg44wyxpsvrs26xry6yy9x9k16qgz0bljs2rhilx4";
|
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
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with 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;
|
|
|
|
};
|
|
|
|
}
|