Skip to content

Commit 5d20803

Browse files
authored
Merge pull request #532 from IntersectMBO/erikd/fix-basement
Fix Hydra build
2 parents 4b7052d + 1e3f77c commit 5d20803

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flake.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
# inherit compiler-nix-name;
120120
# });
121121
# we also want cross compilation to windows.
122-
crossPlatforms = p: lib.optional (system == "x86_64-linux") p.mingwW64;
122+
crossPlatforms = p: lib.optional (system == "x86_64-linux") p.ucrt64;
123123
};
124124

125125
# package customizations as needed. Where cabal.project is not
@@ -158,6 +158,9 @@
158158
packages.terminal-size.components.library.build-tools = lib.mkForce [];
159159
packages.network.components.library.build-tools = lib.mkForce [];
160160
})
161+
({pkgs, ...}: lib.mkIf pkgs.stdenv.hostPlatform.isWindows {
162+
packages.basement.configureFlags = [ "--hsc2hs-options=--cflag=-Wno-int-conversion" ];
163+
})
161164
];
162165
});
163166
# ... and construct a flake from the cabal project

0 commit comments

Comments
 (0)