nixpkgs/pkgs/development/libraries/ntdb/default.nix

50 lines
871 B
Nix
Raw Normal View History

{ stdenv
, fetchurl
, 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 {
pname = "ntdb";
version = "1.0";
2015-01-03 01:22:06 +00:00
src = fetchurl {
url = "mirror://samba/tdb/${pname}-${version}.tar.gz";
2015-01-03 01:22:06 +00:00
sha256 = "0jdzgrz5sr25k83yrw7wqb3r0yj1v04z4s3lhsmnr5z6n5ifhyl1";
};
nativeBuildInputs = [
pkg-config
gettext
libxslt
docbook-xsl-nons
docbook_xml_dtd_42
wafHook
];
2015-01-03 01:22:06 +00:00
buildInputs = [
python3
readline # required to build python
2015-01-03 01:22:06 +00:00
];
wafPath = "buildtools/bin/waf";
2015-01-03 01:22:06 +00:00
wafConfigureFlags = [
2015-01-03 01:22:06 +00:00
"--bundled-libraries=NONE"
"--builtin-libraries=replace,ccan"
];
meta = with stdenv.lib; {
description = "The not-so trivial database";
homepage = "https://tdb.samba.org/";
2015-01-03 01:22:06 +00:00
license = licenses.lgpl3Plus;
platforms = platforms.all;
};
}