tdb: fix cross-compilation
This commit is contained in:
parent
554851e689
commit
b67c061f0a
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchurl, python, pkgconfig, readline, libxslt
|
{ stdenv, fetchurl, python2, pkgconfig, readline, libxslt
|
||||||
, docbook_xsl, docbook_xml_dtd_42
|
, docbook_xsl, docbook_xml_dtd_42, buildPackages
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -10,28 +10,32 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "1ibcz466xwk1x6xvzlgzd5va4lyrjzm3rnjak29kkwk7cmhw4gva";
|
sha256 = "1ibcz466xwk1x6xvzlgzd5va4lyrjzm3rnjak29kkwk7cmhw4gva";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig python2 ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
python readline libxslt docbook_xsl docbook_xml_dtd_42
|
readline libxslt docbook_xsl docbook_xml_dtd_42
|
||||||
];
|
];
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf
|
patchShebangs buildtools/bin/waf
|
||||||
'';
|
'';
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--bundled-libraries=NONE"
|
"--bundled-libraries=NONE"
|
||||||
"--builtin-libraries=replace"
|
"--builtin-libraries=replace"
|
||||||
|
] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
|
"--cross-compile"
|
||||||
|
"--cross-execute=${stdenv.hostPlatform.emulator buildPackages}"
|
||||||
];
|
];
|
||||||
|
configurePlatforms = [ ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "The trivial database";
|
description = "The trivial database";
|
||||||
longDescription =
|
longDescription = ''
|
||||||
'' TDB is a Trivial Database. In concept, it is very much like GDBM,
|
TDB is a Trivial Database. In concept, it is very much like GDBM,
|
||||||
and BSD's DB except that it allows multiple simultaneous writers and
|
and BSD's DB except that it allows multiple simultaneous writers
|
||||||
uses locking internally to keep writers from trampling on each
|
and uses locking internally to keep writers from trampling on each
|
||||||
other. TDB is also extremely small.
|
other. TDB is also extremely small.
|
||||||
'';
|
'';
|
||||||
homepage = https://tdb.samba.org/;
|
homepage = https://tdb.samba.org/;
|
||||||
license = licenses.lgpl3Plus;
|
license = licenses.lgpl3Plus;
|
||||||
maintainers = with maintainers; [ wkennington ];
|
maintainers = with maintainers; [ wkennington ];
|
||||||
|
@ -12588,9 +12588,7 @@ in
|
|||||||
python = python2;
|
python = python2;
|
||||||
};
|
};
|
||||||
|
|
||||||
tdb = callPackage ../development/libraries/tdb {
|
tdb = callPackage ../development/libraries/tdb {};
|
||||||
python = python2;
|
|
||||||
};
|
|
||||||
|
|
||||||
tecla = callPackage ../development/libraries/tecla { };
|
tecla = callPackage ../development/libraries/tecla { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user