New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
h5utils: init at 1.13.1 #37092
h5utils: init at 1.13.1 #37092
Conversation
acdce01
to
ce22fdd
Compare
pkgs/tools/misc/h5utils/default.nix
Outdated
version = "1.13"; | ||
name = "h5utils-${version}"; | ||
|
||
src = fetchurl { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please switch to fetchFromGitHub
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a counterpoint, the package Readme explicitly suggests installing from the tarball, not a git clone:
"(Download this .tar.gz file rather than cloning the git repo unless you are a developer, since the git repo requires additional tools to build as described below.)"
Does that change things?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. I also think it's simpler to fetch this archive. So fetchurl
is fine in this case.
Could you then just add a comment explaining this choice?
pkgs/tools/misc/h5utils/default.nix
Outdated
{ stdenv, fetchurl, hdf5, lib }: | ||
|
||
let | ||
mpi = hdf5.mpi; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(non blocking) This was not helping me to read your code. So from my point of view, this could be removed.
pkgs/tools/misc/h5utils/default.nix
Outdated
sha256 = "1574wrymvcp3zh1m57f2c2ajxhbvpkfb04hyx1am95q856a0b2vy"; | ||
}; | ||
|
||
preBuild = if mpiSupport then "export CC=${mpi}/bin/mpicc" else ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tips: you could use lib.optionalString
14bb0e1
to
f051657
Compare
I've implemented @nlewo's suggestions, but I've also extended the derivation with some optional dependencies so it could use another look; it seemed to me that different packages use slightly different ways to do this (nullable dependencies, or boolean flags), so please let me know if I should change the way I did it here. Also, it seems that the tarball release currently does not include some build fixes needed for some of the optional dependencies, so I've asked the upstream author to cut a new release if possible. If no response is forthcoming I could switch to fetchFromGitHub after all. |
Ok, great. |
9a91136
to
e24b250
Compare
@nlewo The package author has made a 1.13.1 point release, so my previous build errors are now fixed. I did run into another issue though: with the optional |
@SFrijters ok, that's cool for the new release. I know nothing regarding |
Success on x86_64-linux (full log) Attempted: h5utils Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: h5utils Partial log (click to expand)
|
Thanks! |
Thanks for the coaching! |
Motivation for this change
New package: "A set of utilities for visualization and conversion of scientific data in the free, portable HDF5 format"
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)