Skip to content

Commit

Permalink
proper composable overlay mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
wavewave committed May 4, 2022
1 parent 010656e commit 388966e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,16 @@
inherit (newHaskellPackages) fficxx fficxx-runtime stdcxx;
};

# see these issues and discussions:
# - https://github.com/NixOS/nixpkgs/issues/16394
# - https://github.com/NixOS/nixpkgs/issues/25887
# - https://github.com/NixOS/nixpkgs/issues/26561
# - https://discourse.nixos.org/t/nix-haskell-development-2020/6170
overlay = final: prev: {
haskellPackages = prev.haskell.packages.ghc865.override {
overrides = finalHaskellOverlay;
};
haskellPackages = prev.haskellPackages.override (old: {
overrides = final.lib.composeExtensions (old.overrides or (_: _: { }))
finalHaskellOverlay;
});
};

devShell.x86_64-linux = with pkgs;
Expand Down

0 comments on commit 388966e

Please sign in to comment.