Change:
<del> { lib, stdenv, fetchurl, makeWrapper, pkg-config , zip, python, zlib, which, icu, libmicrohttpd, lzma, aria2, wget, bc , libuuid, libX11, libXext, libXt, libXrender, glib, dbus, dbus-glib , gtk2, gdk-pixbuf, pango, cairo, freetype, fontconfig, alsaLib, atk, cmake , xapian, ctpp2, zimlib </del> <ins> { lib, mkDerivation, fetchFromGitHub , callPackage , pkg-config , makeWrapper , qmake , qtbase , qtwebengine , qtsvg , qtimageformats , aria2 </ins> }: <del> with lib; let xulrunner64_tar = fetchurl { url = "http://download.kiwix.org/dev/xulrunner-29.0.en-US.linux-x86_64.tar.bz2"; sha256 = "0i3m30gm5z7qmas14id6ypvbmnb2k7jhz8aby2wz5vvv49zqmx3s"; }; xulrunnersdk64_tar = fetchurl { url = "http://download.kiwix.org/dev/xulrunner-29.0.en-US.linux-x86_64.sdk.tar.bz2"; sha256 = "0z90v7c4mq15g5klmsj8vs2r10fbygj3qzynx4952hkv8ihw8n3a"; }; xulrunner32_tar = fetchurl { url = "http://download.kiwix.org/dev/xulrunner-29.0.en-US.linux-i686.tar.bz2"; sha256 = "0yln6pxz8f6b9wm9124sx049z8mgi17lgd63rcv2hnix825y8gjb"; }; xulrunnersdk32_tar = fetchurl { url = "http://download.kiwix.org/dev/xulrunner-29.0.en-US.linux-i686.sdk.tar.bz2"; sha256 = "1h9vcbvf8wgds6i2z20y7krpys0mqsqhv1ijyfljanp6vyll9fvi"; }; xulrunner = if stdenv.hostPlatform.system == "x86_64-linux" then { tar = xulrunner64_tar; sdk = xulrunnersdk64_tar; } else { tar = xulrunner32_tar; sdk = xulrunnersdk32_tar; }; pugixml = stdenv.mkDerivation rec { version = "1.2"; pname = "pugixml"; src = fetchurl { url = "http://download.kiwix.org/dev/${pname}-${version}.tar.gz"; sha256 = "0sqk0vdwjq44jxbbkj1cy8qykrmafs1sickzldb2w2nshsnjshhg"; }; nativeBuildInputs = [ cmake ]; unpackPhase = '' # not a nice src archive: all the files are in the root :( mkdir ${pname}-${version} cd ${pname}-${version} tar -xf ${src} # and the build scripts are in there :'( cd scripts ''; }; in stdenv.mkDerivation rec { </del> <ins> mkDerivation rec { </ins> pname = "kiwix"; <del> version = "0.9"; </del> <ins> version = "2.0.5"; </ins> <del> src = fetchurl { url = "http://download.kiwix.org/src/kiwix-${version}-src.tar.xz"; sha256 = "0577phhy2na59cpcqjgldvksp0jwczyg0l6c9ghnr19i375l7yqc"; </del> <ins> src = fetchFromGitHub { owner = pname; repo = "${pname}-desktop"; rev = version; sha256 = "12v43bcg4g8fcp02y2srsfdvcb7dpl4pxb9z7a235006s0kfv8yn"; </ins> }; <del> nativeBuildInputs = [ pkg-config ]; buildInputs = [ zip python zlib xapian which icu libmicrohttpd lzma zimlib ctpp2 aria2 wget bc libuuid makeWrapper pugixml </del> <ins> nativeBuildInputs = [ qmake pkg-config </ins> ]; <del> postUnpack = '' cd kiwix* mkdir static cp Makefile.in static/ cd src/dependencies tar -xf ${xulrunner.tar} tar -xf ${xulrunner.sdk} cd ../../.. ''; configureFlags = [ "--disable-staticbins" </del> <ins> buildInputs = [ qtbase qtwebengine qtsvg qtimageformats (callPackage ./lib.nix {}) </ins> ]; <del> postInstall = '' cp -r src/dependencies/xulrunner $out/lib/kiwix patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" $out/lib/kiwix/xulrunner/xulrunner rm $out/bin/kiwix makeWrapper $out/lib/kiwix/kiwix-launcher $out/bin/kiwix  --suffix LD_LIBRARY_PATH : ${makeLibraryPath [stdenv.cc.cc libX11 libXext libXt libXrender glib dbus dbus-glib gtk2 gdk-pixbuf pango cairo freetype fontconfig alsaLib atk]}  --suffix PATH : ${aria2}/bin ''; </del> <ins> qtWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ aria2 ]}" ]; </ins> <del> meta = { </del> <ins> meta = with lib; { </ins> description = "An offline reader for Web content"; homepage = "https://kiwix.org"; license = licenses.gpl3; platforms = platforms.linux; <del> maintainers = with maintainers; [ robbinch ]; knownVulnerabilities = [ "CVE-2015-1032" ]; </del> <ins> maintainers = with maintainers; [ ajs124 ]; </ins> }; }

Discussion:
Describe the bug Kiwix fails to build with a C++ code error. To Reproduce Steps to reproduce the behavior: , because the package is marked as insecure, Expected behavior Kiwix builds. Additional context The error: Probably this needs to be solved for . Notify maintainers <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. -- Metadata system: host os: multi-user?: sandbox: version: channels(mario): channels(root): nixpkgs: Maintainer information:
I marked this as stale due to inactivity. &rarr;
See