Skip to content

Commit 8b81cd0

Browse files
committed
Test fixes
1 parent c10b016 commit 8b81cd0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/gi-gtk/default.nix

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ let
77
project = project' {
88
inherit compiler-nix-name evalPackages;
99
src = testSrc "gi-gtk";
10-
cabalProjectLocal = builtins.readFile ../cabal.project.local;
10+
cabalProjectLocal = builtins.readFile ../cabal.project.local + ''
11+
constraints: filepath source
12+
'';
1113
};
1214

1315
packages = project.hsPkgs;
@@ -17,7 +19,10 @@ in recurseIntoAttrs rec {
1719
# Gtk cross compilation seems to be broken in nixpkgs
1820
|| stdenv.hostPlatform.isWindows
1921
# We can't make static libraries for Gtk
20-
|| stdenv.hostPlatform.isMusl;
22+
|| stdenv.hostPlatform.isMusl
23+
# Older versions of GHC fail for aarch64 with
24+
# error: incompatible pointer to integer conversion assigning to 'ffi_arg' (aka 'unsigned long') from 'HsPtr' (aka 'void *') [-Wint-conversion]
25+
|| builtins.elem compiler-nix-name ["ghc8107" "ghc902" "ghc928" "ghc948"] && stdenv.hostPlatform.isAarch64;
2126

2227
ifdInputs = {
2328
inherit (project) plan-nix;

0 commit comments

Comments
 (0)