summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-06-12 18:37:49 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-06-12 18:37:49 +0200
commit38c4256a9635d37ed297e43ade8e6f5ef42893d1 (patch)
tree6a5fdd8055c9e7d397e1d2ee589112fe2980d9f3 /pkgs
parentc0d39d26a511ddeb794319d7cfa758c3d96f570f (diff)
downloadnixpkgs-38c4256a9635d37ed297e43ade8e6f5ef42893d1.tar
nixpkgs-38c4256a9635d37ed297e43ade8e6f5ef42893d1.tar.gz
nixpkgs-38c4256a9635d37ed297e43ade8e6f5ef42893d1.tar.bz2
nixpkgs-38c4256a9635d37ed297e43ade8e6f5ef42893d1.tar.lz
nixpkgs-38c4256a9635d37ed297e43ade8e6f5ef42893d1.tar.xz
nixpkgs-38c4256a9635d37ed297e43ade8e6f5ef42893d1.tar.zst
nixpkgs-38c4256a9635d37ed297e43ade8e6f5ef42893d1.zip
haskellPackages.gtk2hs-buildtools: attempt to fix build on aarch64
Linker failure outputs look like they are related to the GClosure stuff,
so lets try disabling that flag on arm — originally the upstream cabal
file disabled that flag by default if arch != x86_64-linux || != sparc64,
so this seems to be actually correct.
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/configuration-arm.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-arm.nix b/pkgs/development/haskell-modules/configuration-arm.nix
index b9f868b04ca..a8054c5861e 100644
--- a/pkgs/development/haskell-modules/configuration-arm.nix
+++ b/pkgs/development/haskell-modules/configuration-arm.nix
@@ -37,6 +37,10 @@ self: super: {
   # Similar to https://ghc.haskell.org/trac/ghc/ticket/13062
   happy = dontCheck super.happy;
 
+  # Disable GClosure based signals implementation on aarch64 as it causes linker issues
+  # https://github.com/gtk2hs/gtk2hs/issues/305
+  gtk2hs-buildtools = appendConfigureFlag super.gtk2hs-buildtools "-f-ClosureSignals";
+
 } // lib.optionalAttrs pkgs.stdenv.hostPlatform.isAarch64 {
   # AARCH64-SPECIFIC OVERRIDES