Closed bsima closed 5 years ago
Note that the use of developPackage
means that this Nix file cannot be imported by any other project that intends to use nix-shell
.
Will Fancher notifications@github.com writes:
Note that the use of
developPackage
means that this Nix file cannot be imported by any other project that intends to usenix-shell
.
Good point Will. Commit e67a46f2649ee53380f2a7d933588e8587ba0ecd is an attempt to address this.
@bsima How does that address this? release.nix
still uses callPackage ./shell.nix
, and shell.nix
uses developPackage
.
Will Fancher notifications@github.com writes:
@bsima How does that address this?
release.nix
still usescallPackage ./shell.nix
, andshell.nix
usesdevelopPackage
.
Users can import ./default.nix
to get a nix expression without developPackage
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.
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.