From 25e9f0415127434f9e2d7d31d2918671b781132b Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 26 Mar 2019 16:45:18 -0700 Subject: Add sample aero ibb app --- pack/ibb.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'pack/ibb.nix') diff --git a/pack/ibb.nix b/pack/ibb.nix index 6bf84d8..d91d119 100644 --- a/pack/ibb.nix +++ b/pack/ibb.nix @@ -6,12 +6,30 @@ let blaze-markup bytestring hinotify + miso MonadRandom random scotty shakespeare text ]); + ghcjs_ = pkgs.haskell.packages.ghcjs.override (oldAttrs: { + overrides = with pkgs.haskell.lib; self: super: { + http-types = dontCheck super.http-types; + tasty-quickcheck = dontCheck super.tasty-quickcheck; + scientific = dontCheck super.scientific; # takes forever + servant = dontCheck super.servant; + }; + }); + ghcjs = ghcjs_.ghcWithPackages (hp: with hp; [ + aeson + containers + ghcjs-base + miso + protolude + servant + text + ]); make = ../chip/make; entrypoint = "Ibb"; in @@ -20,7 +38,7 @@ stdenv.mkDerivation rec { version = "0"; src = ../.; nativeBuildInputs = [ - ghc + ghc ghcjs ]; strictDeps = true; buildPhase = "${ghc}/bin/runhaskell ${make} ibb"; -- cgit v1.2.3