From 8709901ffade89a8377c593bec65b1d82012a09e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20B=C3=A4renz?= Date: Fri, 10 Mar 2023 15:33:17 +0100 Subject: [PATCH] Don't test on MacOS See https://github.com/tweag/monad-bayes/pull/256, there are precision issues on macs. --- flake.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/flake.nix b/flake.nix index f9ff6f46..cac0e016 100644 --- a/flake.nix +++ b/flake.nix @@ -76,6 +76,9 @@ name = "monad-bayes"; root = src; cabal2nixOptions = "--benchmark -fdev"; + + # https://github.com/tweag/monad-bayes/pull/256: Don't run tests on Mac because of machine precision issues + modifier = drv: if system == "x86_64-linux" then drv else pkgs.haskell.lib.dontCheck drv; overrides = self: super: with pkgs.haskell.lib; { # Please check after flake.lock updates whether some of these overrides can be removed string-qq = dontCheck super.string-qq; }; @@ -89,6 +92,7 @@ in lib.attrsets.genAttrs ghcs buildForVersion; monad-bayes = monad-bayes-per-ghc.ghc902; + monad-bayes-all-ghcs = pkgs.linkFarm "monad-bayes-all-ghcs" monad-bayes-per-ghc; jupyterEnvironment = mkJupyterlabFromPath ./kernels {inherit pkgs monad-bayes;};