haskell-nix
haskell-nix copied to clipboard
Rename `default.nix` to `<project>.nix`
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.
Yeah, I'd accept a pull request to organize it that way
In this scenario would default.nix
and release*.nix
be the same thing?
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.