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

52 lines
905 B
Nix
Raw Normal View History

{ lib, stdenv
, fetchurl
2020-12-10 11:17:51 +00:00
, python2
, 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
2020-12-10 11:17:51 +00:00
python2 # For 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 lib; {
2015-01-03 01:22:06 +00:00
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;
};
}