2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2020-03-31 04:17:21 +01:00
|
|
|
, fetchurl
|
2020-12-10 11:17:51 +00:00
|
|
|
, python2
|
2020-03-31 04:17:21 +01:00
|
|
|
, python3
|
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, gettext
|
|
|
|
, libxslt
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_42
|
|
|
|
, wafHook
|
2015-01-03 01:22:06 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-03-31 04:17:21 +01:00
|
|
|
pname = "ntdb";
|
|
|
|
version = "1.0";
|
2015-01-03 01:22:06 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-03-31 04:17:21 +01:00
|
|
|
url = "mirror://samba/tdb/${pname}-${version}.tar.gz";
|
2015-01-03 01:22:06 +00:00
|
|
|
sha256 = "0jdzgrz5sr25k83yrw7wqb3r0yj1v04z4s3lhsmnr5z6n5ifhyl1";
|
|
|
|
};
|
|
|
|
|
2020-03-31 04:17:21 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
gettext
|
|
|
|
libxslt
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_42
|
|
|
|
wafHook
|
2020-12-10 11:17:51 +00:00
|
|
|
python2 # For wafHook
|
2020-03-31 04:17:21 +01:00
|
|
|
];
|
|
|
|
|
2015-01-03 01:22:06 +00:00
|
|
|
buildInputs = [
|
2020-03-31 04:17:21 +01:00
|
|
|
python3
|
|
|
|
readline # required to build python
|
2015-01-03 01:22:06 +00:00
|
|
|
];
|
|
|
|
|
2020-03-31 04:17:21 +01:00
|
|
|
wafPath = "buildtools/bin/waf";
|
2015-01-03 01:22:06 +00:00
|
|
|
|
2020-03-31 04:17:21 +01:00
|
|
|
wafConfigureFlags = [
|
2015-01-03 01:22:06 +00:00
|
|
|
"--bundled-libraries=NONE"
|
|
|
|
"--builtin-libraries=replace,ccan"
|
|
|
|
];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2015-01-03 01:22:06 +00:00
|
|
|
description = "The not-so trivial database";
|
2020-03-31 04:17:21 +01:00
|
|
|
homepage = "https://tdb.samba.org/";
|
2015-01-03 01:22:06 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|