@@ -1,20 +1,24 @@
11{ stdenv, fetchurl, adns, curl, gettext, gmp, gnutls, libextractor
22, libgcrypt, libgnurl, libidn, libmicrohttpd, libtool, libunistring
33, makeWrapper, ncurses, pkgconfig, libxml2, sqlite, zlib
4−, libpulseaudio, libopus, libogg }:
4+, libpulseaudio, libopus, libogg, jansson }:
55
66stdenv.mkDerivation rec {
7− name = "gnunet-0.11.0";
7+ pname = "gnunet";
8+ version = "0.11.6";
89
910 src = fetchurl {
10− url = "mirror://gnu/gnunet/${name}.tar.gz";
11− sha256 = "16kydkrjlf2vxflgls46bwaf9kjczf621p456q0qlphd7cy7lixp";
11+ url = "mirror://gnu/gnunet/${pname}-${version}.tar.gz";
12+ sha256 = "1gspr1lh885sb9r2anh7bi4zan3zjqx33lpyhq9hm2g0n5ip187q";
1213 };
1314
15+ enableParallelBuilding = true;
16+
17+ nativeBuildInputs = [ pkgconfig libtool makeWrapper ];
1418 buildInputs = [
15− adns curl gettext gmp gnutls libextractor libgcrypt libgnurl libidn
16− libmicrohttpd libtool libunistring libxml2 makeWrapper ncurses
17− pkgconfig sqlite zlib libpulseaudio libopus libogg
19+ adns curl gmp gnutls libextractor libgcrypt libgnurl libidn
20+ libmicrohttpd libunistring libxml2 ncurses gettext
21+ sqlite zlib libpulseaudio libopus libogg jansson
1822 ];
1923
2024 preConfigure = ''
@@ -29,26 +33,18 @@ stdenv.mkDerivation rec {
2933 find . \( -iname \*test\*.c -or -name \*.conf \) | \
3034 xargs sed -ie "s|/tmp|$TMPDIR|g"
3135
32− # Ensure NSS installation works fine
33− configureFlags="$configureFlags --with-nssdir=$out/lib"
34− patchShebangs src/gns/nss/install-nss-plugin.sh
35−
3636 sed -ie 's|@LDFLAGS@|@LDFLAGS@ $(Z_LIBS)|g' \
3737 src/regex/Makefile.in \
3838 src/fs/Makefile.in
3939 '';
4040
41+ # unfortunately, there's still a few failures with impure tests
4142 doCheck = false;
42−
43− /* FIXME: Tests must be run this way, but there are still a couple of
44− failures.
45−
46− postInstall =
47− '' export GNUNET_PREFIX="$out"
48− export PATH="$out/bin:$PATH"
49− make -k check
50− '';
51− */
43+ checkPhase = ''
44+ export GNUNET_PREFIX="$out"
45+ export PATH="$out/bin:$PATH"
46+ make -k check
47+ '';
5248
5349 meta = with stdenv.lib; {
5450 description = "GNU's decentralized anonymous and censorship-resistant P2P framework";
@@ -69,9 +65,7 @@ stdenv.mkDerivation rec {
6965 '';
7066
7167 homepage = https://gnunet.org/;
72−
7368 license = licenses.gpl2Plus;
74−
7569 maintainers = with maintainers; [ vrthra ];
7670 platforms = platforms.gnu ++ platforms.linux;
7771 };