Dance around compiler versions

This commit is contained in:
Andrea Bedini 2023-03-03 12:31:29 +08:00
parent 3e99be2211
commit 164217b7fb
2 changed files with 11 additions and 9 deletions

View File

@ -1,5 +1,5 @@
packages: .
index-state: 2022-08-29T00:00:00Z
index-state: 2023-01-08T00:00:00Z
with-compiler: ghc-9.2.5
allow-newer:
, tomland:base

View File

@ -18,17 +18,18 @@
overlays = [ haskell-nix.overlay ];
};
pkgs-static-where-possible = if pkgs.stdenv.hostPlatform.isLinux then
if pkgs.stdenv.hostPlatform.isAarch64 then
pkgs.pkgsCross.aarch64-multiplatform-musl
pkgs-static-where-possible =
if pkgs.stdenv.hostPlatform.isLinux then
if pkgs.stdenv.hostPlatform.isAarch64 then
pkgs.pkgsCross.aarch64-multiplatform-musl
else
pkgs.pkgsCross.musl64
else
pkgs.pkgsCross.musl64
else
pkgs;
pkgs;
project = pkgs-static-where-possible.haskell-nix.cabalProject' {
src = ./.;
compiler-nix-name = "ghc8107";
compiler-nix-name = "ghc925";
shell.tools = {
cabal = { };
hlint = { };
@ -38,7 +39,8 @@
flake = project.flake { };
in flake // { packages.default = flake.packages."foliage:exe:foliage"; });
in
flake // { packages.default = flake.packages."foliage:exe:foliage"; });
nixConfig = {
extra-substituters = [