ldb: clean up expression
* format with nixpkgs-fmt * quote homepage as per RFC 0045 * split name → pname & version * do not use aliases * switch to wafHook
This commit is contained in:
parent
2ef17b38fb
commit
b04ace2fbb
@ -1,21 +1,45 @@
|
|||||||
{ stdenv, fetchurl, python, pkgconfig, readline, tdb, talloc, tevent
|
{ stdenv
|
||||||
, popt, libxslt, docbook_xsl, docbook_xml_dtd_42, cmocka
|
, fetchurl
|
||||||
|
, python
|
||||||
|
, pkg-config
|
||||||
|
, readline
|
||||||
|
, tdb
|
||||||
|
, talloc
|
||||||
|
, tevent
|
||||||
|
, popt
|
||||||
|
, libxslt
|
||||||
|
, docbook-xsl-nons
|
||||||
|
, docbook_xml_dtd_42
|
||||||
|
, cmocka
|
||||||
|
, wafHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "ldb-1.3.3";
|
pname = "ldb";
|
||||||
|
version = "1.3.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://samba/ldb/${name}.tar.gz";
|
url = "mirror://samba/ldb/${pname}-${version}.tar.gz";
|
||||||
sha256 = "14gsrm7dvyjpbpnc60z75j6fz2p187abm2h353lq95kx2bv70c1b" ;
|
sha256 = "14gsrm7dvyjpbpnc60z75j6fz2p187abm2h353lq95kx2bv70c1b";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [
|
||||||
|
pkg-config
|
||||||
|
wafHook
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python readline tdb talloc tevent popt
|
python
|
||||||
libxslt docbook_xsl docbook_xml_dtd_42
|
readline
|
||||||
|
tdb
|
||||||
|
talloc
|
||||||
|
tevent
|
||||||
|
popt
|
||||||
|
libxslt
|
||||||
|
docbook-xsl-nons
|
||||||
|
docbook_xml_dtd_42
|
||||||
cmocka
|
cmocka
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -30,11 +54,9 @@ stdenv.mkDerivation rec {
|
|||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
wafPath = "buildtools/bin/waf";
|
||||||
sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf
|
|
||||||
'';
|
|
||||||
|
|
||||||
configureFlags = [
|
wafConfigureFlags = [
|
||||||
"--bundled-libraries=NONE"
|
"--bundled-libraries=NONE"
|
||||||
"--builtin-libraries=replace"
|
"--builtin-libraries=replace"
|
||||||
];
|
];
|
||||||
@ -43,7 +65,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A LDAP-like embedded database";
|
description = "A LDAP-like embedded database";
|
||||||
homepage = https://ldb.samba.org/;
|
homepage = "https://ldb.samba.org/";
|
||||||
license = licenses.lgpl3Plus;
|
license = licenses.lgpl3Plus;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user