on iko/ghcjs-patch-master help sign in
flakes tutorial: add buildInputs example (#1248)
fbbcda2Sridhar Ratnakumar
docs/tutorials/getting-started-flakes.md+4
@@ -57,6 +57,10 @@ Add `flake.nix`:
57 hlint = {};
57 hlint = {};
58 haskell-language-server = {};
58 haskell-language-server = {};
59 };
59 };
60+ # Non-Haskell shell tools go here
61+ shell.buildInputs = with pkgs; [
62+ nixpkgs-fmt
63+ ];
60 # This adds `js-unknown-ghcjs-cabal` to the shell.
64 # This adds `js-unknown-ghcjs-cabal` to the shell.
61 shell.crossPlatform = p: [p.ghcjs];
65 shell.crossPlatform = p: [p.ghcjs];
62 };
66 };