From 18701fff4051d73e3cf3b4d7581ec428cb0ab0aa Mon Sep 17 00:00:00 2001 From: wchresta <34962284+wchresta@users.noreply.github.com> Date: Sun, 28 Dec 2025 21:23:20 +0100 Subject: [PATCH] haskellPackages.MIP: fix broken, disable tests The hackage zip is missing some of the test data, thus the tests fail. This was raised in https://github.com/msakai/haskell-MIP/issues/87 Until this is fixed upstream, we disable the tests. With the fix of MIP, MIP-glpk is now broken not because of MIP failing but because of a problem with the module itself. The module doesn't build because of an incomatibility with extended-reals >=0.2.7.0. This has been addressed upstream https://github.com/msakai/haskell-MIP/commit/60a5ee234fc6667d2c34152761fa5a54a6f6e533 but has not been released, yet. --- pkgs/development/haskell-modules/configuration-common.nix | 1 + .../haskell-modules/configuration-hackage2nix/broken.yaml | 2 +- .../configuration-hackage2nix/transitive-broken.yaml | 1 - pkgs/development/haskell-modules/hackage-packages.nix | 3 +-- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 4bacb842bb600..0a18d05217204 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1008,6 +1008,7 @@ with haskellLib; lvmrun = disableHardening [ "format" ] (dontCheck super.lvmrun); matplotlib = dontCheck super.matplotlib; milena = dontCheck super.milena; + MIP = dontCheck super.MIP; # https://github.com/msakai/haskell-MIP/issues/87 modular-arithmetic = dontCheck super.modular-arithmetic; # tests require a very old Glob (0.7.*) nats-queue = dontCheck super.nats-queue; network-dbus = dontCheck super.network-dbus; diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml index c0ee73d404bdc..c773cd2b56534 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/broken.yaml @@ -4048,7 +4048,7 @@ broken-packages: - minizinc-process # failure in job https://hydra.nixos.org/build/233211497 at 2023-09-02 - minst-idx # failure in job https://hydra.nixos.org/build/233259901 at 2023-09-02 - mios # failure in job https://hydra.nixos.org/build/233251863 at 2023-09-02 - - MIP # failure in job https://hydra.nixos.org/build/233199688 at 2023-09-02 + - MIP-glpk # incompatible with extended-reals >=0.2.7.0, https://github.com/msakai/haskell-MIP/commit/60a5ee234fc6667d2c34152761fa5a54a6f6e533 - mirror-tweet # failure in job https://hydra.nixos.org/build/233216951 at 2023-09-02 - mismi-p # failure in job https://hydra.nixos.org/build/233257227 at 2023-09-02 - mit-3qvpPyAi6mH # failure in job https://hydra.nixos.org/build/233229967 at 2023-09-02 diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml index 6fac5357c380a..c8c64bedf8200 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/transitive-broken.yaml @@ -2261,7 +2261,6 @@ dont-distribute-packages: - minimung - minioperational - minirotate - - MIP-glpk - mismi-kernel - mismi-s3-core - miss diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 6b33a3258785e..58f2e1bdc8087 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -29247,8 +29247,6 @@ self: { ]; description = "Library for using Mixed Integer Programming (MIP)"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; - broken = true; } ) { }; @@ -29309,6 +29307,7 @@ self: { description = "A GLPK backend to the MIP library"; license = lib.licenses.gpl3Only; hydraPlatforms = lib.platforms.none; + broken = true; } ) { inherit (pkgs) glpk; };