Unable to use this flake on darwin #47
ashwinmathi
started this conversation in
General
Replies: 3 comments 4 replies
-
Can you share your What is your Nix version? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Nix Version: 2.11.1 I have an attribute "default" set in the haskellProjects sections if I'm understanding what you mean properly and yeah I have packages.default set here:
|
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've tried both duplicating the haskell-template repo and starting with a fresh repo and adding the flake specified in this repo to no avail.
Upon running nix develop, it seems to properly download all the dependencies and stuff so after creating the flake.lock I get this error
error: flake 'path:/Users/$USER/Documents/Workspace/$PROJNAME' does not provide attribute 'devShells.x86-64-darwin.default', 'devShell.x86-64-darwin', 'packages.x86-64-darwin.default' or 'defaultPackage.x86-64-darwin' Did you mean one of devShells or x86_64-darwin?
From what I can tell the default package/devShell isn't getting set on darwin but I don't have any other operating systems to check this with.
The only resource I was able to find that helped me understand this a little more was this issue on the o.g. nix repo, but that seems to be pretty specific to the 'nix flake new' command which I'm not using for this. (EDIT: the proposed solution seems to be to use flake-utils whereas this flake uses flake-parts)
Is there something I should manually be changing to let this work on macOS?
Thank you for your time and energy maintaining this package!!
Beta Was this translation helpful? Give feedback.
All reactions