Add build instructions for nix #213
No reviewers
Labels
No Label
blocked: dependency
blocked: info-needed
bug
duplicate
enhancement
fixed in HEAD
help wanted
hs:arrows
hs:brackets
hs:classes
hs:comments
hs:do-notation
hs:guards
hs:lists
hs:operators
hs:patterns
hs:records
hs:types
invalid
language extension support
layouting
needs confirmation
priority: high
priority: low
question
revisit before next release
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: hexagoxel/brittany#213
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "nix-build"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
This works on my NixOS machine, and it should work everywhere else too, since i've pinned the nixpkgs version in
pkgs.nix
. Thedefault.nix
file supports bothnix build
andnix-shell
automatically. You can also do e.g.nix-shell --argstr compiler ghc844
to change the compiler; I have it set toghc822
as the default because that's what worked for me when building.Note that the use of
developPackage
means that this Nix file cannot be imported by any other project that intends to usenix-shell
.Will Fancher notifications@github.com writes:
Good point Will. Commit
e67a46f264
is anattempt to address this.
@bsima How does that address this?
release.nix
still usescallPackage ./shell.nix
, andshell.nix
usesdevelopPackage
.Will Fancher notifications@github.com writes:
Users can
import ./default.nix
to get a nix expression withoutdevelopPackage
I am gonna optimistically assume that the complain has indeed been resolved. Have not tested, but if there are issues we can always change things again later.
Thanks for the PR.