Commit Graph

11 Commits

Author SHA1 Message Date
qbisi
0b324cc371 mumps: add variant mumps_par with mpi support 2024-10-27 22:49:12 +08:00
qbisi
badfe1998d mumps: simplify fixupphase with fixDarwinDylibNames 2024-10-27 22:49:11 +08:00
qbisi
8f2c8168e7 mumps: add some checks 2024-10-27 22:49:11 +08:00
qbisi
0f8d273ca5 mumps: headers remove symlink to subdir
With the upstream patch to casadi (https://github.com/casadi/casadi/pull/3899),
There is no need for nixpkgs#mumps to symlink header files to subdir mumps.
Nix packagers should manualy specify the include directory and link libraries for
the coinmumps required project like nipxkgs#libopt.
2024-10-27 22:49:10 +08:00
qbisi
bf5d835e6e mumps: install mumps libseq headers to include/mumps_seq
Directory libseq contains dummy MPI/BLACS/ScaLAPACK symbols to allow
linking/running MUMPS on a platform where MPI is not installed.
The install directory name mumps_seq comes from Debian source package
and Aur pkgbuild. See
- https://sources.debian.org/src/mumps/5.7.3-2/debian/libmumps-headers-dev.install
- https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=mumps-seq
2024-10-27 22:14:56 +08:00
qbisi
c9997c4e36 mumps: remove unnecessary patch from coin-or-mumps
The coin-or project ipopt use a thirdparty-mumps, this variant renames `libseq/mpi.h`
to `libseq/mumps_mpi.h` to avoid conflicts when building in a MPI environment.
See https://github.com/coin-or/Ipopt/blob/stable/3.14/ChangeLog.md?plain=1#L582.
Nix packagers don't need to worry about this cause we build in a sandbox environment.
For parrallel version of mumps built with mpi support, libseq is not needed and there will be no conflicts.
2024-10-27 22:14:56 +08:00
qbisi
66d928e812 mumps: enable parallel building 2024-10-27 22:14:55 +08:00
Artturin
e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
Guilhem Saurel
981629a05b mumps: update scotch include dir 2024-08-27 11:15:25 +02:00
Guilhem Saurel
4ef2027dca mumps: build on darwin 2024-08-12 15:25:42 +02:00
Guilhem Saurel
05fb9b070f mumps: init at 5.7.3 2024-08-08 01:08:10 +02:00