Commit Graph

114 Commits

Author SHA1 Message Date
Yueh-Shun Li
db30e2366a hdf5: remove old assert on mutually exclusive cpp/mpi, allowing override (#441362) 2026-07-21 19:42:45 +00:00
XYenon
497dd138ca hdf5: fix Darwin dylib install names 2026-05-22 16:59:08 +08:00
Doron Behar
96e0d84b53 hdf5: enable szip with libaec
szip is unfree, that's why using it was disabled by default. Also, if
cmake was called with `-DHDF5_ENABLE_SZIP_SUPPORT=ON`, we got the
messages:

    -- Could NOT find libaec (missing: libaec_DIR)
    CMake Warning at CMakeFilters.cmake:221 (message):
    SZIP support in HDF5 was enabled but not found

Meaning the library szip was no longer in use by this library since an
earlier release.
2026-04-16 00:33:40 +03:00
Doron Behar
cc3efd5411 hdf5: remove BUILD_WITH_INSTALL_NAME cmake flag
Argument is ignored by cmake according to the build log.
2026-04-16 00:32:55 +03:00
Doron Behar
25f408e860 hdf5: small formatting adjustment to postInstall 2026-04-16 00:32:55 +03:00
Doron Behar
61ab2478c3 hdf5: use lib.cmakeBool for all cmakeFlags 2026-04-14 17:47:41 +03:00
Doron Behar
be49150ba8 hdf5: use a general name for api version expression argument 2026-04-14 17:47:41 +03:00
qbisi
c7913241c2 hdf5: fix patch url 2026-04-05 12:03:45 +08:00
Markus Kowalewski
1cb4495080 hdf5: make build reproducible 2026-02-09 11:33:56 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Chris Hall
1f6eba8e14 hdf5: remove old assert on mutually exclusive cpp/mpi, allowing users to override 2025-09-09 12:19:02 +10:00
Chris Hall
b17f1938a1 hdf5-threadsafe: fix cmake flag, disable c++ api.
Short:
 - fix incorrect cmake flag `"-DDHDF5_ENABLE_THREADSAFE:BOOL=ON"` -> `"-DHDF5_ENABLE_THREADSAFE:BOOL=ON"`.
 - disable unsupported c++ api in hdf5-threadsafe.

Breaking:
Note: this bug means that historically nixpkgs was building hdf5-threadsafe without threadsafety enabled, but with c++ support.
C++ and threadsafe are unsupported, so this fix is a slight breaking change if downstream users were relying on hdf5-threadsafe exposing the c++ api.
If we instead want to expose both c++ and threadsafe, we would need "-DALLOW_UNSUPPORTED=ON", but then we are exposing a combination not supported or tested by upstream.

Related:
typo introduced in cbd4d659e3
in the transition to cmake `"--enable-threadsafe"` was changed to `"-DDHDF5_ENABLE_THREADSAFE:BOOL=ON"`.
Note the double `D`, the correct syntax is `-DFLAG_NAME=VALUE`.

C++ was enabled by default in 9046690c73

Longer:
```
$ nix build .#legacyPackages.aarch64-darwin.hdf5-threadsafe
$ nix log $(nix eval --raw .#legacyPackages.aarch64-darwin.hdf5-threadsafe.drvPath)
[...]
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DOCDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_INFODIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_LOCALEDIR
    CMAKE_INSTALL_MANDIR
    CMAKE_INSTALL_SBINDIR
    CMAKE_POLICY_DEFAULT_CMP0025
    DHDF5_ENABLE_THREADSAFE

[...]
```

```
$ git grep -ni 'DHDF5_ENABLE_THREADSAFE'
pkgs/tools/misc/hdf5/default.nix:93:    "-DDHDF5_ENABLE_THREADSAFE:BOOL=ON"
```

We can see the correct version of this flag in the hdf5 repo
```
$ git grep -ni 'HDF5_ENABLE_THREADSAFE'
.github/workflows/arm-main-cmake.yml:94:            -DHDF5_ENABLE_THREADSAFE:BOOL=ON \
[...]
CMakeBuildOptions.cmake:59:option (HDF5_ENABLE_THREADSAFE "Enable thread-safety" OFF)
[...]
```

after this fix we can again inspect the cmake output, and we no longer see a warning for this unsupported variable

```
$ nix build .#legacyPackages.aarch64-darwin.hdf5-threadsafe
$ nix log $(nix eval --raw .#legacyPackages.aarch64-darwin.hdf5-threadsafe.drvPath)
[...]

CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_EXPORT_NO_PACKAGE_REGISTRY
    CMAKE_INSTALL_BINDIR
    CMAKE_INSTALL_DOCDIR
    CMAKE_INSTALL_INCLUDEDIR
    CMAKE_INSTALL_INFODIR
    CMAKE_INSTALL_LIBDIR
    CMAKE_INSTALL_LIBEXECDIR
    CMAKE_INSTALL_LOCALEDIR
    CMAKE_INSTALL_MANDIR
    CMAKE_INSTALL_SBINDIR
    CMAKE_POLICY_DEFAULT_CMP0025

[...]
```

if we try to compile with both cppSupport and threadsafe we receive
```
> CMake Error at CMakeLists.txt:959 (message):
>    **** C++ and thread-safety options are not supported, override with ALLOW_UNSUPPORTED option ****
```

Testing:
Builds clean on aarch64-darwin and x86_64-linux.
2025-09-08 10:28:10 +10:00
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
R. Ryantm
faf10ffd4d hdf5-cpp: 1.14.5 -> 1.14.6 2025-02-06 01:29:47 +00:00
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Stephen Huan
aebb41980c hdf5_1_10: add stephen-huan as maintainer 2024-11-26 23:48:40 -08:00
Stephen Huan
9896808a25 hdf5_1_10: enable cpp support 2024-11-26 23:47:46 -08:00
Markus Kowalewski
16478834f4 hdf5: 1.14.4.3 -> 1.14.5 2024-10-02 16:44:23 +02: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
Vladimír Čunát
1549705430 hdf5: fix a typo in the previous x86_64-darwin commit 2024-07-04 10:54:13 +02:00
Vladimír Čunát
1a386e193d hdf5: fixup x86_64-darwin build, hopefully
https://hydra.nixos.org/build/264567971/nixlog/4/tail
2024-07-04 09:36:08 +02:00
Markus Kowalewski
22f7cc0aeb Merge pull request #309595 from markuskowa/upd-hdf5
hdf5: 1.14.3 -> 1.14.4.3
2024-06-20 09:58:04 +00:00
Markus Kowalewski
c4e0154f80 hdf5-fortran: move F90 mod files to dev output; remove refs to gfortran 2024-06-03 10:28:27 +02:00
Markus Kowalewski
38c661b1aa hdf5: 1.14.4.2 -> 1.14.4.3 2024-05-23 23:09:59 +02:00
Markus Kowalewski
20eab24a92 hdf5: 1.14.3 -> 1.14.4.2
Switch downloads to GitHub
2024-05-23 23:09:59 +02:00
Martin Weinelt
937f490e74 hdf5: remove -shared suffix only from existing files 2024-03-17 20:58:23 +01:00
Ivan Mincik
72c0a74096 Merge pull request #277224 from r-burns/hdf5-closure-size
hdf5: refactor to reduce downstream closure size
2024-03-05 07:32:22 +00:00
Ryan Burns
9046690c73 hdf5: refactor to reduce downstream closure size
* Only build static libs by default when stdenv.hostPlatform.isStatic
* Add separate -bin output
* Move h5hlcc/c++ dev binaries to -dev output
* Default to building with C++ support to cut down
  on duplicated hdf5/hdf5-cpp in downstream closures
2024-03-01 17:14:34 -08:00
Markus Kowalewski
2f44799d84 hdf5: remove unneded path to mpi compiler 2024-02-01 11:08:56 +01:00
Peder Bergebakken Sundt
f41aba3739 treewide: remove unreferenced patch files
Found with `fd \\.patch$ pkgs/ -x bash -c 'rg -F "{/}" pkgs/ -q || echo {}'`
2023-12-01 06:11:20 +01:00
Nick Cao
1707bcc94e Merge pull request #268889 from jiegec/hdf5
hdf5_1_10: 1.10.9 -> 1.10.11
2023-11-21 08:57:25 -05:00
Jiajie Chen
0f4845f397 hdf5_1_10: 1.10.9 -> 1.10.11
According to
https://www.hdfgroup.org/2023/09/release-of-hdf5-1-10-11-library-and-tools-newsletter-198/,
HDF5 v1.10.11 fixes the CVEs. Closes #268883.
2023-11-21 15:20:55 +08:00
R. Ryantm
11595eb346 hdf5: 1.14.2 -> 1.14.3 2023-10-31 14:54:05 +00:00
Weijia Wang
7570b91f68 hdf5: fix runtime error on darwin 2023-10-23 15:12:42 +02:00
Phillip Seeber
cbd4d659e3 hdf5: switch to cmake build 2023-09-15 13:21:33 +02:00
Markus Kowalewski
bae6f6346f hdf5: 1.14.1-2 -> 1.14.2 2023-08-21 22:22:57 +02:00
figsoda
f1ec434848 pkgs/tools/misc: remove dead code
with the help of deadnix & nil
2023-07-13 17:37:07 +03:00
markuskowa
436b66aa39 Merge pull request #232215 from markuskowa/upd-hdf5
hdf5: 1.14.0 -> 1.14.1-2
2023-06-17 22:43:55 +02:00
Martin Weinelt
04b8795d8e hdf5_1_10: mark vulnerable
Closes: #128374
2023-06-04 09:52:34 +02:00
Markus Kowalewski
d11f03622f hdf5: 1.14.0 -> 1.14.1-2 2023-05-16 13:12:36 +02:00
Markus Kowalewski
1030709e0f hdf5: add maintainer markuskowa 2023-04-17 10:51:39 +02:00
Markus Kowalewski
4fbc3190f5 hdf: enable parallel builds 2023-04-17 10:51:39 +02:00
Markus Kowalewski
b89323329c hdf5: fix dev output, remove refs to /build from compiler wrappers 2023-04-17 10:51:39 +02:00
Vladimír Čunát
0eb467c342 Merge #217601: python310Packages.h5py: 3.7.0 -> 3.8.0
...into staging-next
2023-02-22 09:05:53 +01:00
Robert Schütz
4bd8b542eb hdf5: add h5py to passthru.tests 2023-02-21 16:23:29 -08:00
R. Ryantm
bd33397607 hdf5: 1.12.2 -> 1.14.0 2023-01-19 23:03:46 +00:00
Robert Scott
84403d9477 Merge pull request #180083 from jiegec/hdf5
hdf5: 1.12.1 -> 1.12.2
2022-07-11 01:40:07 +01:00
Jiajie Chen
8a84ef7972 hdf5: 1.12.1 -> 1.12.2
The bin-mv.patch is applied upstream.
2022-07-10 19:29:16 +08:00
Jiajie Chen
b3aee32add hdf5_1_10: 1.10.6 -> 1.10.9
pythonPackages.tables is updated, the version pin is removed.

The bin-mv.patch is applied upstream.
2022-07-04 14:54:43 +08:00
Felix Buehler
8250f0f4ea hdf5-mpi,hdf5-cpp,hdf5-fortran,hdf5-threadsafe: remove appendToName to
have a consistent package name for repology
2022-02-15 14:14:39 +01:00