on master help sign in
Merge pull request #187 from eskimor/devTools

Changed command lines in "contributing" to include build tools

commitede7d566b7e9362e2bf55a9ea291f2ca2a3ea9d4 authorLuigy Leon <luichi.19@gmail.com> dateMon 5 Nov 2018, 13:42 (8 years ago) parent8767400ff0584d
2 files changed+6−2
README.md+2−2 default.nix+4
README.md+2−2
@@ -47,13 +47,13 @@ Obelisk provides an easy way to develop and deploy your [Reflex](https://github.
4747When developing on obelisk itself you may launch `ghcid` for the corresponding project as follows. For example to launch ghcid for `lib/backend` project:
4848
4949```
50−nix-shell -A obelisk.obelisk-backend.env --run "cd lib/backend && ghcid -c 'cabal new-repl'"
50+nix-shell -A obeliskEnvs.obelisk-backend --run "cd lib/backend && ghcid -c 'cabal new-repl'"
5151```
5252
5353Or to launch ghcid for `lib/command` project:
5454
5555```
56−nix-shell -A obelisk.obelisk-command.env --run "cd lib/command && ghcid -c 'cabal new-repl'"
56+nix-shell -A obeliskEnvs.obelisk-command --run "cd lib/command && ghcid -c 'cabal new-repl'"
5757```
5858
5959### Accessing private repositories
default.nix+4
@@ -114,6 +114,9 @@ let
114114 # The haskell environment used to build Obelisk itself, e.g. the 'ob' command
115115 ghcObelisk = reflex-platform.ghc;
116116
117+ # Development environments for obelisk packages.
118+ ghcObeliskEnvs = pkgs.lib.mapAttrs (n: v: reflex-platform.workOn ghcObelisk v) ghcObelisk;
119+
117120 inherit (import ./lib/asset/assets.nix { inherit nixpkgs; }) mkAssets;
118121
119122 haskellLib = pkgs.haskell.lib;
@@ -125,6 +128,7 @@ in rec {
125128 pathGit = ./.; # Used in CI by the migration graph hash algorithm to correctly ignore files.
126129 path = reflex-platform.filterGit ./.;
127130 obelisk = ghcObelisk;
131+ obeliskEnvs = ghcObeliskEnvs;
128132 command = ghcObelisk.obelisk-command;
129133 shell = pinBuildInputs "obelisk-shell" ([command] ++ commandRuntimeDeps pkgs) [];
130134