ffc78d3539
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
51 lines
907 B
Nix
51 lines
907 B
Nix
{ stdenv
|
|
, fetchurl
|
|
, python2
|
|
, python3
|
|
, pkg-config
|
|
, readline
|
|
, gettext
|
|
, libxslt
|
|
, docbook-xsl-nons
|
|
, docbook_xml_dtd_42
|
|
, wafHook
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ntdb";
|
|
version = "1.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://samba/tdb/${pname}-${version}.tar.gz";
|
|
sha256 = "0jdzgrz5sr25k83yrw7wqb3r0yj1v04z4s3lhsmnr5z6n5ifhyl1";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
gettext
|
|
libxslt
|
|
docbook-xsl-nons
|
|
docbook_xml_dtd_42
|
|
wafHook
|
|
python2 # For wafHook
|
|
];
|
|
|
|
buildInputs = [
|
|
python3
|
|
readline # required to build python
|
|
];
|
|
|
|
wafPath = "buildtools/bin/waf";
|
|
|
|
wafConfigureFlags = [
|
|
"--bundled-libraries=NONE"
|
|
"--builtin-libraries=replace,ccan"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "The not-so trivial database";
|
|
homepage = "https://tdb.samba.org/";
|
|
license = licenses.lgpl3Plus;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|