diff options
Diffstat (limited to 'Biz/Bild')
-rw-r--r-- | Biz/Bild/Builder.nix (renamed from Biz/Bild/Haskell.nix) | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Biz/Bild/Haskell.nix b/Biz/Bild/Builder.nix index 24b6686..a0ed17c 100644 --- a/Biz/Bild/Haskell.nix +++ b/Biz/Bild/Builder.nix @@ -5,6 +5,7 @@ , name # exe name , main # entrypoint file , mainIs # entrypoint module name +, buildPhase }: with import (/. + root + "/Biz/Bild.nix") {}; with builtins; @@ -24,12 +25,9 @@ let else []; in stdenv.mkDerivation { - inherit name; + inherit name buildPhase; buildInputs = [ (private.${packageSet} deps) ]; src = lib.sources.cleanSourceWith {inherit filter; src = lib.sources.cleanSource root;}; - buildPhase = '' - ghc -Werror -i$src -odir. -hidir. --make $src/${main} -main-is "${mainIs}" -o ${name} - ''; installPhase = '' mkdir -p $out/bin && cp ${name} $out/bin ''; |