From ed6bd02a9d1446e5e2af9f599e49ab69a9d72e06 Mon Sep 17 00:00:00 2001 From: Samuel Leathers Date: Wed, 30 Aug 2017 13:09:23 -0400 Subject: [PATCH] sword: fix build with gcc6 --- pkgs/development/libraries/sword/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/libraries/sword/default.nix b/pkgs/development/libraries/sword/default.nix index 6091bb3c8bb2..44f6cabd35a7 100644 --- a/pkgs/development/libraries/sword/default.nix +++ b/pkgs/development/libraries/sword/default.nix @@ -16,6 +16,13 @@ stdenv.mkDerivation rec { patchShebangs .; ''; + patches = [ + (fetchurl { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-text/sword/files/sword-1.7.4-gcc6.patch"; + sha256 = "0cvnya5swc7dxabir6bz6la2h1qxd32g3xi06m9b5l5ahb6g10y7"; + }) + ]; + configureFlags = "--without-conf --enable-tests=no CXXFLAGS=-Wno-unused-but-set-variable"; meta = with stdenv.lib; {