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