From 23ea4f8738f55607db29851f4950137cde725080 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 6 Oct 2019 10:43:50 +0200 Subject: [PATCH] haskell-glib: patch to fix the build --- pkgs/development/haskell-modules/configuration-common.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 1ddc15a2ca4..7316d5758a0 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1228,4 +1228,12 @@ self: super: { # The LTS-14.x version of optparse-applicative is too old. cabal-plan = super.cabal-plan.override { optparse-applicative = self.optparse-applicative_0_15_1_0; }; + # https://github.com/gtk2hs/gtk2hs/issues/276 + glib = appendPatch super.glib (pkgs.fetchpatch { + url = https://github.com/gtk2hs/gtk2hs/pull/282.patch; + name = "undefine-gcc-attribute-syntax"; + sha256 = "1s72s683p2n5ri1a030zywciq0020ms64cmsy48axndp6dp9vri7"; + stripLen = 1; + }); + } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super