From 864c51546955ea24c8075028667259d22259555f Mon Sep 17 00:00:00 2001 From: "Niels G. W. Serup" Date: Sun, 15 Sep 2024 20:23:10 +0200 Subject: [PATCH] Use more flags when building with default.nix --- byg/default.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/byg/default.nix b/byg/default.nix index 541d5d7..86e58f0 100644 --- a/byg/default.nix +++ b/byg/default.nix @@ -1,2 +1,9 @@ with import ./nix/common.nix; -haskell.callCabal2nix "byg" ./. { } +pkgs.haskell.lib.overrideCabal + (haskell.callCabal2nix "byg" ./. { }) + (_: { + configureFlags = [ + "--ghc-option=-Werror" + "--ghc-option=-O2" + ]; + })