Fix builds on Darwin (#14)

* Fix builds on Darwin

… using the trick that @roberth taught me here:

https://github.com/NixOS/nixpkgs/pull/196646#issuecomment-1327364634

This requires bumping the Cabal format version, which in turn requires
bumping the version of `cabal2nix`

* Update README
This commit is contained in:
Gabriella Gonzalez
2022-11-25 08:16:11 -08:00
committed by GitHub
parent b6cabad434
commit 1e42286b14
4 changed files with 18 additions and 15 deletions

View File

@@ -12,6 +12,10 @@
outputs = { nixpkgs, utils, ... }:
let
overlay = pkgsNew: pkgsOld: {
cabal2nix-unwrapped =
pkgsNew.haskell.lib.justStaticExecutables
pkgsNew.haskell.packages.ghc92.cabal2nix;
haskellPackages = pkgsOld.haskellPackages.override (old: {
overrides =
pkgsNew.lib.fold pkgsNew.lib.composeExtensions (old.overrides or (_: _: { })) [