Skip to content

Commit ff0ccd6

Browse files
Gabriella439jneira
andauthored
Enable aarch64-darwin in flake.nix (#2561)
Currently only GHC 8.10.7 builds on `aarch64-darwin` after this change Co-authored-by: Javier Neira <atreyu.bbb@gmail.com>
1 parent 1849a87 commit ff0ccd6

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

flake.nix

+7-1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,12 @@
9797
url = "https://hackage.haskell.org/package/implicit-hie-cradle-0.3.0.5/implicit-hie-cradle-0.3.0.5.tar.gz";
9898
sha256 = "15a7g9x6cjk2b92hb2wilxx4550msxp1pmk5a2shiva821qaxnfq";
9999
}) { };
100+
101+
# https://github.com/NixOS/nixpkgs/issues/140774
102+
ormolu =
103+
if final.system == "aarch64-darwin"
104+
then overrideCabal hsuper.ormolu (_: { enableSeparateBinOutput = false; })
105+
else hsuper.ormolu;
100106
};
101107

102108
hlsSources =
@@ -135,7 +141,7 @@
135141
chmod +x $dest
136142
'';
137143
};
138-
} // (flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" ])
144+
} // (flake-utils.lib.eachSystem [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" ])
139145
(system:
140146
let
141147
pkgs = import nixpkgs {

0 commit comments

Comments
 (0)