Skip to content

Commit

Permalink
[Chore] Fix issues with windows cross-compilation via nix
Browse files Browse the repository at this point in the history
Problem: Cross-compilation to windows is broken.

Solution:
1) Build 'bitvec' without 'simd' flag since it causes the build to fail.
2) Remove old workaround for 'iserv-proxy-interprete' because the
   aforementioned issue was fixed in newer GHC versions.
  • Loading branch information
rvem committed Apr 1, 2024
1 parent 83ea8a3 commit cccdf6a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
pkgs = haskell-nix.legacyPackages.${system}.extend
(haskell-nix.legacyPackages.${system}.lib.composeManyExtensions [
serokell-nix.overlay
# silly workaround for https://gitlab.haskell.org/ghc/ghc/-/issues/21254
(final: prev: prev.lib.recursiveUpdate prev {
haskell-nix.iserv-proxy-exes.ghc902.iserv-proxy-interpreter.override =
attrs: prev.haskell-nix.iserv-proxy-exes.ghc902.iserv-proxy-interpreter.override
(attrs // { enableDebugRTS = false; });
})
]);

flake = (pkgs.haskell-nix.stackProject {
Expand Down Expand Up @@ -57,6 +51,9 @@
xrefcheck-tests.build-tools = [ pkgs.git ];
};
};
# bitvec compilation on mingw64 with 'simd' flag fails with
# unknown symbol `__cpu_model'
packages.bitvec.flags.simd = false;
}];
}).flake { crossPlatforms = p: [ p.musl64 p.mingwW64 ]; };

Expand Down

0 comments on commit cccdf6a

Please sign in to comment.