Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename default.nix to <project>.nix #44

Open
sgraf812 opened this issue Apr 5, 2018 · 3 comments
Open

Rename default.nix to <project>.nix #44

sgraf812 opened this issue Apr 5, 2018 · 3 comments

Comments

@sgraf812
Copy link

sgraf812 commented Apr 5, 2018

As I'm trying to make sense of Nix, I was slightly confused that I couldn't just nix-build the default.nix. https://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure suggests another approach, where the generated nix expression is instead saved as <project>.nix and then called from default.nix and probably release*.nix by extension.

@Gabriella439
Copy link
Owner

Yeah, I'd accept a pull request to organize it that way

@trevorriles
Copy link

In this scenario would default.nix and release*.nix be the same thing?

@sgraf812
Copy link
Author

Depends on whether you want to pin to some nixpks commit, so generally no. https://nixos.org/nixpkgs/manual/#how-to-create-nix-builds-for-your-own-private-haskell-packages gives examples for the most basic shell.nix and default.nix files. release*.nix is just a variant of default.nix that pins dependencies to be reproducible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants