From 9756eb0806aef63137ed53c7f78eee13aa3db9d7 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Fri, 1 Nov 2019 14:24:24 -0700 Subject: add buildHaskellApp nix function --- default.nix | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) (limited to 'default.nix') diff --git a/default.nix b/default.nix index e3d3ca1..aedf4a0 100644 --- a/default.nix +++ b/default.nix @@ -8,7 +8,7 @@ let system = full.system; vm = full.vm; }; - + buildHaskellApp = import ./com/simatime/buildHaskellApp.nix nixpkgs; in { com.simatime = import ./com/simatime.nix { inherit buildNixOS; }; com.influencedbybooks = buildNixOS { @@ -28,4 +28,38 @@ in { security.sudo.wheelNeedsPassword = true; boot.cleanTmpDir = true; }; + } // { + ibb = buildHaskellApp { + name = "Com.Influencedbybooks"; + apex = "Com.Influencedbybooks.Apex"; + aero = "Com.Influencedbybooks.Aero"; + deps = { + both = [ + "clay" + "miso" + "protolude" + "servant" + "text" + ]; + apex = [ + "MonadRandom" + "acid-state" + "blaze-html" + "blaze-markup" + "bytestring" + "ixset" + "random" + "safecopy" + "scotty" + "servant-server" + "text" + ]; + aero = [ + "aeson" + "containers" + "ghcjs-base" + ]; + }; + }; + }; } -- cgit v1.2.3