haskellPackages.mpi-hs*: respect pkgs.mpi and make tests pass

This commit is contained in:
Phillip Seeber
2023-10-29 19:08:16 +01:00
committed by maralorn
parent a2207ccaf5
commit fe7d494468
3 changed files with 30 additions and 0 deletions
@@ -379,6 +379,11 @@ package-maintainers:
- taffybar
- arbtt
- lentil
sheepforce:
- mpi-hs
- mpi-hs-store
- mpi-hs-cereal
- mpi-hs-binary
shlok:
- streamly-archive
- streamly-lmdb
@@ -1342,4 +1342,24 @@ self: super: builtins.intersectAttrs super {
gi-webkit2
gi-webkit2webextension
;
# Makes the mpi-hs package respect the choice of mpi implementation in Nixpkgs.
# Also adds required test dependencies for checks to pass
mpi-hs =
let validMpi = [ "openmpi" "mpich" "mvapich" ];
mpiImpl = pkgs.mpi.pname;
disableUnused = with builtins; map disableCabalFlag (filter (n: n != mpiImpl) validMpi);
in lib.pipe
(super.mpi-hs_0_7_3_0.override { ompi = pkgs.mpi; })
( [ (addTestToolDepends [ pkgs.openssh pkgs.mpiCheckPhaseHook ]) ]
++ disableUnused
++ lib.optional (builtins.elem mpiImpl validMpi) (enableCabalFlag mpiImpl)
);
inherit (lib.mapAttrs (_: addTestToolDepends
[ pkgs.openssh pkgs.mpiCheckPhaseHook ]
) super)
mpi-hs-store
mpi-hs-cereal
mpi-hs-binary
;
}
+5
View File
@@ -205920,6 +205920,7 @@ self: {
description = "MPI bindings for Haskell";
license = lib.licenses.asl20;
badPlatforms = [ "aarch64-linux" ] ++ lib.platforms.darwin;
maintainers = [ lib.maintainers.sheepforce ];
}) {inherit (pkgs) mpich;};
"mpi-hs_0_7_3_0" = callPackage
@@ -205941,6 +205942,7 @@ self: {
license = lib.licenses.asl20;
badPlatforms = [ "aarch64-linux" ] ++ lib.platforms.darwin;
hydraPlatforms = lib.platforms.none;
maintainers = [ lib.maintainers.sheepforce ];
}) {ompi = null;};
"mpi-hs-binary" = callPackage
@@ -205959,6 +205961,7 @@ self: {
description = "MPI bindings for Haskell";
license = lib.licenses.asl20;
badPlatforms = [ "aarch64-linux" ] ++ lib.platforms.darwin;
maintainers = [ lib.maintainers.sheepforce ];
}) {};
"mpi-hs-cereal" = callPackage
@@ -205977,6 +205980,7 @@ self: {
description = "MPI bindings for Haskell";
license = lib.licenses.asl20;
badPlatforms = [ "aarch64-linux" ] ++ lib.platforms.darwin;
maintainers = [ lib.maintainers.sheepforce ];
}) {};
"mpi-hs-store" = callPackage
@@ -205995,6 +205999,7 @@ self: {
description = "MPI bindings for Haskell";
license = lib.licenses.asl20;
badPlatforms = [ "aarch64-linux" ] ++ lib.platforms.darwin;
maintainers = [ lib.maintainers.sheepforce ];
}) {};
"mplayer-spot" = callPackage