From 1c51ae337b5a88f17e85ec13be78f6c05802dfc8 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 26 Mar 2019 12:49:15 -0700 Subject: Add a custom make script --- pack/ibb.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'pack') diff --git a/pack/ibb.nix b/pack/ibb.nix index feb99f9..6bf84d8 100644 --- a/pack/ibb.nix +++ b/pack/ibb.nix @@ -5,12 +5,14 @@ let blaze-html blaze-markup bytestring + hinotify MonadRandom random scotty shakespeare text ]); + make = ../chip/make; entrypoint = "Ibb"; in stdenv.mkDerivation rec { @@ -21,11 +23,7 @@ stdenv.mkDerivation rec { ghc ]; strictDeps = true; - buildPhase = '' - ${ghc}/bin/ghc -iapex -ilore \ - -main-is ${entrypoint} --make apex/${entrypoint}.hs \ - -o bild/${name} - ''; + buildPhase = "${ghc}/bin/runhaskell ${make} ibb"; installPhase = '' mkdir -p $out/bin cp bild/${name} $out/bin/${name} -- cgit v1.2.3