diff options
author | Ben Sima <ben@bsima.me> | 2019-03-02 16:54:23 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-03-02 16:54:23 -0800 |
commit | 3d0df3ed30014f22574af4b390553930ef7cbb7f (patch) | |
tree | fd72c076d495d10b5f12e72934953478c8f758f8 | |
parent | 189ae4dd8845ebd0967578accd03a77071ab2732 (diff) |
Flesh out build topology
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | README.md | 11 | ||||
-rw-r--r-- | default.nix | 4 | ||||
-rw-r--r-- | depo/default.nix | 3 |
4 files changed, 17 insertions, 3 deletions
@@ -3,7 +3,7 @@ USER = root OUT = $(shell readlink -n ./result) result: - nix-build --attr system ./depo/nutin-madaj + nix-build -A depo.nutin-madaj.system copy: result nix copy --to "ssh://$(USER)@$(HOST)" ./result @@ -18,7 +18,7 @@ This isn't totally in place yet, but it's something to work toward. To get a development shell, for example to work on ibb, you can do: - $ nix-shell pack --attr ibb + $ nix-shell -A pack.ibb $ ghci GHCi, version 8.4.4: http://www.haskell.org/ghc/ :? for help Loaded GHCi configuration from /home/ben/src/biz/.ghci @@ -27,7 +27,14 @@ To get a development shell, for example to work on ibb, you can do: [2 of 2] Compiling Ibb ( apex/Ibb.hs, interpreted ) Ok, two modules loaded. -Goals of the developer workflow: +The build system topology is defined in `./default.nix`, so follow the import +paths there to see what's available for building and installing locally. For +example, to build `ibb`: `nix-build -A pack.ibb`. Or, to build the main app +server with all dependencies and configuration: `nix-build -A +depo.nutin-madaj.system`. Omitting `.system` will also build a VM that you can +run locally for testing. + +## Goals of the developer workflow: - have minimal ceremony - default to asynchrony, but allow for synchronous work when necessary diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..543f571 --- /dev/null +++ b/default.nix @@ -0,0 +1,4 @@ +{ +depo = import ./depo; +pack = import ./pack; +} diff --git a/depo/default.nix b/depo/default.nix new file mode 100644 index 0000000..79cdca5 --- /dev/null +++ b/depo/default.nix @@ -0,0 +1,3 @@ +{ +nutin-madaj = import ./nutin-madaj; +} |