From 2de95a222750f6f6cbf953c4be7aeacff5df940e Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone <exarkun@twistedmatrix.com> Date: Thu, 25 May 2023 10:25:24 -0400 Subject: [PATCH] make sure we can runi the tests `cabal run tests` sometimes fails with an error about the build plan not including the test suite :( but we can make sure the plan includes the test suite with this flag. --- flake.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 72e7dac..01d65c6 100644 --- a/flake.nix +++ b/flake.nix @@ -84,8 +84,13 @@ # headers and stuff. export PKG_CONFIG_PATH=${pkgs.lib.makeSearchPath "lib/pkgconfig" [pkgs.zlib.dev]} + # Get (or update if we have one) a package database so cabal can + # solve our dependencies. cabal update hackage.haskell.org - cabal run tests + + # Configure with tests enable, build the tests (if necessary), + # and run the default test suite. + cabal run --enable-tests tests ''; } }/bin/cabal-build-and-test"; -- GitLab