summaryrefslogtreecommitdiff
path: root/default.nix
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2020-04-03 15:17:11 -0700
committerBen Sima <ben@bsima.me>2020-04-03 15:17:11 -0700
commitf8b7d6c4eb9915515f3fecc2843eaab7e48df94d (patch)
treee7d2169ce75013e086be902a97f0d6c284ce0831 /default.nix
parent87b48d473bdb41670c9f3b26a628f34c3c5c9481 (diff)
Consolidate most build functions to biz.nix
Diffstat (limited to 'default.nix')
-rw-r--r--default.nix15
1 files changed, 7 insertions, 8 deletions
diff --git a/default.nix b/default.nix
index 41a1f0b..753483d 100644
--- a/default.nix
+++ b/default.nix
@@ -4,9 +4,8 @@ let
nixos = import "${nixpkgs-tar}/nixos";
# TODO(bsima): buildNixOS should be split into multiple functions that each
# return one thing, instead of a single function that returns multiple things
+ biz = import ./biz.nix { inherit nixpkgs; };
buildOS = import ./Com/Simatime/buildOS.nix nixos;
- buildGhc = import ./Com/Simatime/buildGhc.nix nixpkgs;
- buildGhcjs = import ./Com/Simatime/buildGhcjs.nix nixpkgs;
nixos-mailserver = let ver = "v2.3.0"; in builtins.fetchTarball {
url = "https://gitlab.com/simple-nixos-mailserver/nixos-mailserver/-/archive/${ver}/nixos-mailserver-${ver}.tar.gz";
sha256 = "0lpz08qviccvpfws2nm83n7m2r8add2wvfg9bljx9yxx8107r919";
@@ -72,10 +71,10 @@ in rec {
};
# Haskell targets
#
- Com.InfluencedByBooks.Server = buildGhc Com/InfluencedByBooks/Server.hs;
- Com.InfluencedByBooks.Client = buildGhcjs Com/InfluencedByBooks/Client.hs;
- Com.MusicMeetsComics.Server = buildGhc Com/MusicMeetsComics/Server.hs;
- Com.MusicMeetsComics.Client = buildGhcjs Com/MusicMeetsComics/Client.hs;
- Run.Que.Server = buildGhc ./Run/Que/Server.hs;
- Run.Que.Website = buildGhc ./Run/Que/Website.hs;
+ Com.InfluencedByBooks.Server = biz.buildGhc Com/InfluencedByBooks/Server.hs;
+ Com.InfluencedByBooks.Client = biz.buildGhcjs Com/InfluencedByBooks/Client.hs;
+ Com.MusicMeetsComics.Server = biz.buildGhc Com/MusicMeetsComics/Server.hs;
+ Com.MusicMeetsComics.Client = biz.buildGhcjs Com/MusicMeetsComics/Client.hs;
+ Run.Que.Server = biz.buildGhc ./Run/Que/Server.hs;
+ Run.Que.Website = biz.buildGhc ./Run/Que/Website.hs;
}