Change:
Describe the bug build of failed. To Reproduce Metadata system: host os: multi-user?: sandbox: version: channels(root): channels(gtgteq): nixpkgs: Maintainer information:
Looks like regression in . We need to build talloc with Python 3 too.
It might also need

Discussion:
<del> { stdenv, fetchurl, python, pkgconfig, readline, tdb, talloc, tevent , popt, libxslt, docbook_xsl, docbook_xml_dtd_42, cmocka </del> <ins> { stdenv , fetchurl , python3 , pkg-config , readline , tdb , talloc , tevent , popt , libxslt , docbook-xsl-nons , docbook_xml_dtd_42 , cmocka , wafHook </ins> }: stdenv.mkDerivation rec { <del> name = "ldb-1.3.3"; </del> <ins> pname = "ldb"; version = "2.1.1"; </ins> src = fetchurl { <del> url = "mirror://samba/ldb/${name}.tar.gz"; sha256 = "14gsrm7dvyjpbpnc60z75j6fz2p187abm2h353lq95kx2bv70c1b"                                                                                                                                                             ; </del> <ins> url = "mirror://samba/ldb/${pname}-${version}.tar.gz"; sha256 = "jO+y8l/KkT+hinktDvsDrwf4f1uVGkze0DD1uY8lx7A="; </ins> }; outputs = [ "out" "dev" ]; <del> nativeBuildInputs = [ pkgconfig ]; buildInputs = [ python readline tdb talloc tevent popt libxslt docbook_xsl docbook_xml_dtd_42 cmocka </del> <ins> nativeBuildInputs = [ pkg-config python3 wafHook libxslt docbook-xsl-nons docbook_xml_dtd_42 </ins> ]; <del> patches = [ # CVE-2019-3824 # downloading the patch from debian as they have ported the patch from samba to ldb but otherwise is identical to # https://bugzilla.samba.org/attachment.cgi?id=14857 (fetchurl { name = "CVE-2019-3824.patch"; url = "https://sources.debian.org/data/main/l/ldb/2:1.1.27-1+deb9u1/debian/patches/CVE-2019-3824-master-v4-5-02.patch"; sha256 = "1idnqckvjh18rh9sbq90rr4sxfviha9nd1ca9pd6lai0y6r6q4yd"; }) </del> <ins> buildInputs = [ python3 readline # required to build python tdb talloc tevent popt cmocka </ins> ]; <del> preConfigure = '' sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf ''; </del> <ins> wafPath = "buildtools/bin/waf"; </ins> <del> configureFlags = [ </del> <ins> wafConfigureFlags = [ </ins> "--bundled-libraries=NONE" "--builtin-libraries=replace" <ins> "--without-ldb-lmdb" </ins> ]; stripDebugList = "bin lib modules"; meta = with stdenv.lib; { description = "A LDAP-like embedded database"; <del> homepage = https://ldb.samba.org/; </del> <ins> homepage = "https://ldb.samba.org/"; </ins> license = licenses.lgpl3Plus; platforms = platforms.all; };

<del> { stdenv, fetchurl, python, pkgconfig, readline, gettext, libxslt , docbook_xsl, docbook_xml_dtd_42 </del> <ins> { stdenv , fetchurl , python3 , pkg-config , readline , gettext , libxslt , docbook-xsl-nons , docbook_xml_dtd_42 , wafHook </ins> }: stdenv.mkDerivation rec { <del> name = "ntdb-1.0"; </del> <ins> pname = "ntdb"; version = "1.0"; </ins> src = fetchurl { <del> url = "mirror://samba/tdb/${name}.tar.gz"; </del> <ins> url = "mirror://samba/tdb/${pname}-${version}.tar.gz"; </ins> sha256 = "0jdzgrz5sr25k83yrw7wqb3r0yj1v04z4s3lhsmnr5z6n5ifhyl1"; }; <del> nativeBuildInputs = [ pkgconfig ]; </del> <ins> nativeBuildInputs = [ pkg-config gettext libxslt docbook-xsl-nons docbook_xml_dtd_42 wafHook ]; </ins> buildInputs = [ <del> python readline gettext libxslt docbook_xsl docbook_xml_dtd_42 </del> <ins> python3 readline # required to build python </ins> ]; <del> preConfigure = '' patchShebangs buildtools/bin/waf ''; </del> <ins> wafPath = "buildtools/bin/waf"; </ins> <del> configureFlags = [ </del> <ins> wafConfigureFlags = [ </ins> "--bundled-libraries=NONE" "--builtin-libraries=replace,ccan" ]; meta = with stdenv.lib; { description = "The not-so trivial database"; <del> homepage = https://tdb.samba.org/; </del> <ins> homepage = "https://tdb.samba.org/"; </ins> license = licenses.lgpl3Plus; platforms = platforms.all; };

<del> { stdenv, fetchurl, python, pkgconfig, readline, libxslt , docbook_xsl, docbook_xml_dtd_42, fixDarwinDylibNames </del> <ins> { stdenv , fetchurl , python , pkg-config , readline , libxslt , docbook-xsl-nons , docbook_xml_dtd_42 , fixDarwinDylibNames </ins> , wafHook }:

sha256 = "0xwzgzrqamfdlklwacp9d219pqkah0yfrhxb1j7bxlmgzp924j7g"; }; <del> nativeBuildInputs = [ pkgconfig fixDarwinDylibNames python wafHook docbook_xsl docbook_xml_dtd_42 ]; buildInputs = [ readline libxslt ]; </del> <ins> nativeBuildInputs = [ pkg-config fixDarwinDylibNames python wafHook docbook-xsl-nons docbook_xml_dtd_42 ]; buildInputs = [ readline libxslt ]; </ins> wafPath = "buildtools/bin/waf";

<del> { stdenv, fetchurl, pkgconfig , wafHook, python3, readline , libxslt, docbook_xsl, docbook_xml_dtd_45 </del> <ins> { stdenv , fetchurl , pkg-config , wafHook , python3 , readline , libxslt , docbook-xsl-nons , docbook_xml_dtd_45 </ins> }: stdenv.mkDerivation rec { <del> name = "tdb-1.4.3"; </del> <ins> pname = "tdb"; version = "1.4.3"; </ins> src = fetchurl { <del> url = "mirror://samba/tdb/${name}.tar.gz"; </del> <ins> url = "mirror://samba/tdb/${pname}-${version}.tar.gz"; </ins> sha256 = "06waz0k50c7v3chd08mzp2rv7w4k4q9isbxx3vhlfpx1vy9q61f8"; }; nativeBuildInputs = [ <del> pkgconfig wafHook libxslt docbook_xsl docbook_xml_dtd_45 </del> <ins> pkg-config wafHook libxslt docbook-xsl-nons docbook_xml_dtd_45 </ins> ]; buildInputs = [ <del> python3 readline </del> <ins> python3 readline # required to build python </ins> ]; wafPath = "buildtools/bin/waf";

and uses locking internally to keep writers from trampling on each other. TDB is also extremely small. ''; <del> homepage = https://tdb.samba.org/; </del> <ins> homepage = "https://tdb.samba.org/"; </ins> license = licenses.lgpl3Plus; platforms = platforms.all; };

<del> { stdenv, fetchurl, python, pkgconfig, readline, talloc , libxslt, docbook_xsl, docbook_xml_dtd_42 </del> <ins> { stdenv , fetchurl , python3 , pkg-config , readline , talloc , libxslt , docbook-xsl-nons , docbook_xml_dtd_42 , which , wafHook </ins> }: stdenv.mkDerivation rec { <del> name = "tevent-0.9.37"; </del> <ins> pname = "tevent"; version = "0.10.2"; </ins> src = fetchurl { <del> url = "mirror://samba/tevent/${name}.tar.gz"; sha256 = "1q77vbjic2bb79li2a54ffscnrnwwww55fbpry2kgh7acpnlb0qn"; </del> <ins> url = "mirror://samba/tevent/${pname}-${version}.tar.gz"; sha256 = "+EJ4IuWyh4+4so1vUNloSHNPPzEwYS+1dP3S0hSKZpY="; </ins> }; <del> nativeBuildInputs = [ pkgconfig ]; </del> <ins> nativeBuildInputs = [ pkg-config which python3 libxslt docbook-xsl-nons docbook_xml_dtd_42 wafHook ]; </ins> buildInputs = [ <del> python readline talloc libxslt docbook_xsl docbook_xml_dtd_42 </del> <ins> python3 readline # required to build python talloc </ins> ]; <del> preConfigure = '' sed -i 's,#!/usr/bin/env python,#!${python}/bin/python,g' buildtools/bin/waf ''; </del> <ins> wafPath = "buildtools/bin/waf"; </ins> <del> configureFlags = [ </del> <ins> wafConfigureFlags = [ </ins> "--bundled-libraries=NONE" "--builtin-libraries=replace" ]; meta = with stdenv.lib; { description = "An event system based on the talloc memory management library"; <del> homepage = https://tevent.samba.org/; </del> <ins> homepage = "https://tevent.samba.org/"; </ins> license = licenses.lgpl3Plus; platforms = platforms.all; };

ldacbt = callPackage ../development/libraries/ldacbt { }; <del> ldb = callPackage ../development/libraries/ldb { python = python2; }; </del> <ins> ldb = callPackage ../development/libraries/ldb { }; </ins> lensfun = callPackage ../development/libraries/lensfun {};

tclx = callPackage ../development/libraries/tclx { }; <del> ntdb = callPackage ../development/libraries/ntdb { python = python2; }; </del> <ins> ntdb = callPackage ../development/libraries/ntdb { }; </ins> tdb = callPackage ../development/libraries/tdb {};

termbox = callPackage ../development/libraries/termbox { }; <del> tevent = callPackage ../development/libraries/tevent { python = python2; }; </del> <ins> tevent = callPackage ../development/libraries/tevent { }; </ins> tet = callPackage ../development/tools/misc/tet { };