Skip to content

Commit 1c6abad

Browse files
committed
Nix: Disable -Wint-conversion when cross compiling basement
1 parent 53070b6 commit 1c6abad

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

flake.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,12 @@
9595
substituteInPlace crypton-x509-system.cabal --replace 'Crypt32' 'crypt32'
9696
'';
9797
}
98+
# On Windows cross-compile a `basement` hsc2hs file generates a pointer to int
99+
# conversion error.
100+
({pkgs, ...}: lib.mkIf pkgs.stdenv.hostPlatform.isWindows {
101+
packages.basement.configureFlags = [ "--hsc2hs-option=--cflag=-Wno-int-conversion" ];
102+
})
103+
98104
];
99105
});
100106
# ... and construct a flake from the cabal project

0 commit comments

Comments
 (0)