Update development.md (#1010)
Remove inheritance from `shell.nix` when defining `hsPkgs`. I tried following the tutorial on a new project and I had errors caused by this.
commit6c9facfada85bd298691ecb2b5b2d124c342f869
authorArnaud Bailly <arnaud.oqube@gmail.com>
dateThu 18 Mar 2021, 08:04 (6 years ago)
parent637302c
docs/tutorials/development.md+1−1
@@ -37,7 +37,7 @@ themselves. This is what the [`shellFor`][shellFor] function does.
3737{ pkgs ? import <nixpkgs> {} }:
3838
3939let
40− hsPkgs = import ./default.nix { inherit pkgs; };
40+ hsPkgs = import ./default.nix { };
4141in
4242 hsPkgs.shellFor {
4343 # Include only the *local* packages of your project.