git.iko.soy/typeable/nixpkgs
on master help sign in
twister: Fix build against GCC 6.x

This applies upstream commit miguelfreitas/twister-core@dd4f5a176958ea6. Tested only by building and executing "twisterd --help", but no serious testing done otherwise. Signed-off-by: aszlig <aszlig@redmoonstudios.org>

commit58c0d63100244211f5a898d5c26a76aca038698c authoraszlig <aszlig@redmoonstudios.org> dateFri 25 Aug 2017, 18:27 (9 years ago) parentc905b78
1 file changed+7−1
pkgs/applications/networking/p2p/twister/default.nix+7−1
pkgs/applications/networking/p2p/twister/default.nix+7−1
@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, autoconf, automake, libtool, pkgconfig, python2
1+{ stdenv, fetchurl, fetchpatch, autoconf, automake, libtool, pkgconfig, python2
22, boost, db, openssl, geoip, libiconv, miniupnpc
33, srcOnly, fetchgit
44}:
@@ -37,6 +37,12 @@ in stdenv.mkDerivation rec {
3737 boost db openssl geoip miniupnpc libiconv
3838 ];
3939
40+ patches = stdenv.lib.singleton (fetchpatch {
41+ url = "https://github.com/miguelfreitas/twister-core/commit/"
42+ + "dd4f5a176958ea6ed855dc3fcef79680c1c0c92c.patch";
43+ sha256 = "06fgmqnjyl83civ3ixiq673k8zjgm8n2w4w46nsh810nprqim8s6";
44+ });
45+
4046 postPatch = ''
4147 sed -i -e '/-htmldir/s|(default: [^)]*)|(default: ${twisterHTML})|' \
4248 src/init.cpp