-
Notifications
You must be signed in to change notification settings - Fork 260
Description
Is your feature request related to a problem? Please describe.
My understanding is that a haskell.nix Flake does not work in exactly the same way on Mac and Linux. Based on this comment #1401 (comment) and some testing, it looks like a haskell.nix Flake can be used on both Mac and Linux by:
- modifying
evalSystem - the
--impureflag
or - having a system with both Mac and Linux builders
Describe the solution you'd like
The haskell.nix Flake in this project https://github.com/input-output-hk/cicero-pipe appears to use a fourth solution. nix build and nix develop run on Mac and Linux, without using any of the three solutions above. I have tested this on an amd64-linux and amd64-mac.
The key may be the materialization: https://github.com/input-output-hk/cicero-pipe/tree/master/nix/materialized
Can the approach taken in the cicero-pipe Flake be copied into the haskell.nix Flake template, to improve the ease-of-use of the Flake template?
Additional context
Discussion about builtins.currentSystem: #1401
Thank you for this project, haskell.nix has been very useful to me!