mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
ntdb: clean up expression
* format with nixpkgs-fmt * quote homepage as per RFC 0045 * split name → pname & version * do not use aliases * switch to wafHook * move build tools to nativeBuildInputs
This commit is contained in:
parent
4cfdc7af53
commit
1be7664496
2 changed files with 29 additions and 15 deletions
|
@ -1,32 +1,48 @@
|
|||
{ stdenv, fetchurl, python, pkgconfig, readline, gettext, libxslt
|
||||
, docbook_xsl, docbook_xml_dtd_42
|
||||
{ stdenv
|
||||
, fetchurl
|
||||
, python3
|
||||
, pkg-config
|
||||
, readline
|
||||
, gettext
|
||||
, libxslt
|
||||
, docbook-xsl-nons
|
||||
, docbook_xml_dtd_42
|
||||
, wafHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "ntdb-1.0";
|
||||
pname = "ntdb";
|
||||
version = "1.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://samba/tdb/${name}.tar.gz";
|
||||
url = "mirror://samba/tdb/${pname}-${version}.tar.gz";
|
||||
sha256 = "0jdzgrz5sr25k83yrw7wqb3r0yj1v04z4s3lhsmnr5z6n5ifhyl1";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
buildInputs = [
|
||||
python readline gettext libxslt docbook_xsl docbook_xml_dtd_42
|
||||
nativeBuildInputs = [
|
||||
pkg-config
|
||||
gettext
|
||||
libxslt
|
||||
docbook-xsl-nons
|
||||
docbook_xml_dtd_42
|
||||
wafHook
|
||||
];
|
||||
|
||||
preConfigure = ''
|
||||
patchShebangs buildtools/bin/waf
|
||||
'';
|
||||
buildInputs = [
|
||||
python3
|
||||
readline # required to build python
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
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/;
|
||||
homepage = "https://tdb.samba.org/";
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
|
|
|
@ -14627,9 +14627,7 @@ in
|
|||
|
||||
tclx = callPackage ../development/libraries/tclx { };
|
||||
|
||||
ntdb = callPackage ../development/libraries/ntdb {
|
||||
python = python2;
|
||||
};
|
||||
ntdb = callPackage ../development/libraries/ntdb { };
|
||||
|
||||
tdb = callPackage ../development/libraries/tdb {};
|
||||
|
||||
|
|
Loading…
Reference in a new issue