on master help sign in
Made user visible commands simpler.
commit24105ec5053d0a79e2cf319a52ffa502c53e3a29 authorRobert Klotzner <robert.klotzner@gmx.at> dateSun 16 Sep 2018, 22:06 (8 years ago) parentde6d627
2 files changed+7−2
README.md+2−2 default.nix+5
README.md+2−2
@@ -45,13 +45,13 @@ Obelisk provides an easy way to develop and deploy your [Reflex](https://github.
4545When developing on obelisk itself you may launch `ghcid` for the corresponding project as follows. For example to launch ghcid for `lib/backend` project:
4646
4747```
48−nix-shell -E 'let this = import ./default.nix {}; in this.reflex-platform.workOn this.obelisk this.obelisk.obelisk-backend' --run "cd lib/backend && ghcid -c 'cabal new-repl'"
48+nix-shell -A obeliskEnvs.obelisk-backend --run "cd lib/backend && ghcid -c 'cabal new-repl'"
4949```
5050
5151Or to launch ghcid for `lib/command` project:
5252
5353```
54−nix-shell -E 'let this = import ./default.nix {}; in this.reflex-platform.workOn this.obelisk this.obelisk.obelisk-command' --run "cd lib/command && ghcid -c 'cabal new-repl'"
54+nix-shell -A obeliskEnvs.obelisk-command --run "cd lib/command && ghcid -c 'cabal new-repl'"
5555```
5656
5757### Accessing private repositories
default.nix+5
@@ -73,6 +73,9 @@ let
7373 });
7474 };
7575
76+ # Development environments for obelisk packages.
77+ ghcObeliskEnvs = mapAttrs (n: v: reflex-platform.workOn ghcObelisk ghcObelisk.${v}) ghcObelisk;
78+
7679 fixUpstreamPkgs = self: super: {
7780 heist = doJailbreak super.heist; #TODO: Move up to reflex-platform; create tests for r-p supported packages
7881 modern-uri =
@@ -125,6 +128,7 @@ let
125128 };
126129
127130 defaultHaskellOverrides = composeExtensions fixUpstreamPkgs addLibs;
131+
128132in
129133with pkgs.lib;
130134rec {
@@ -133,6 +137,7 @@ rec {
133137 pathGit = ./.; # Used in CI by the migration graph hash algorithm to correctly ignore files.
134138 path = reflex-platform.filterGit ./.;
135139 obelisk = ghcObelisk;
140+ obeliskEnvs = ghcObeliskEnvs;
136141 commandWithMigration = ghcObelisk.obelisk-command.overrideAttrs (drv: {
137142 postInstall = (drv.postInstall or "") +
138143 ''cp -r ${./migration} $out/migration;'';