diff options
author | Stefan Frijters <sfrijters@gmail.com> | 2018-03-15 12:04:54 +0100 |
---|---|---|
committer | Stefan Frijters <sfrijters@gmail.com> | 2018-03-19 22:40:09 +0100 |
commit | 8ade9e6705701c1445c82cf895ddbe99b2557c41 (patch) | |
tree | bc916c222e28155af286ff2feaab3f56b240b1ab /pkgs | |
parent | 5675f17b0ed8be07752dedb1a9c42a20142f07e9 (diff) | |
download | nixpkgs-8ade9e6705701c1445c82cf895ddbe99b2557c41.tar nixpkgs-8ade9e6705701c1445c82cf895ddbe99b2557c41.tar.gz nixpkgs-8ade9e6705701c1445c82cf895ddbe99b2557c41.tar.bz2 nixpkgs-8ade9e6705701c1445c82cf895ddbe99b2557c41.tar.lz nixpkgs-8ade9e6705701c1445c82cf895ddbe99b2557c41.tar.xz nixpkgs-8ade9e6705701c1445c82cf895ddbe99b2557c41.tar.zst nixpkgs-8ade9e6705701c1445c82cf895ddbe99b2557c41.zip |
h5utils: init at 1.13.1
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/misc/h5utils/default.nix | 38 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 5 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/misc/h5utils/default.nix b/pkgs/tools/misc/h5utils/default.nix new file mode 100644 index 00000000000..db18cae77b1 --- /dev/null +++ b/pkgs/tools/misc/h5utils/default.nix @@ -0,0 +1,38 @@ +{ stdenv, fetchurl, lib +, hdf5, libpng, libjpeg +, hdf4 ? null +, libmatheval ? null +}: + +stdenv.mkDerivation rec { + version = "1.13.1"; + name = "h5utils-${version}"; + + # fetchurl is used instead of fetchFromGitHub because the git repo version requires + # additional tools to build compared to the tarball release; see the README for details. + src = fetchurl { + url = "https://github.com/stevengj/h5utils/releases/download/${version}/h5utils-${version}.tar.gz"; + sha256 = "0rbx3m8p5am8z5m0f3sryryfc41541hjpkixb1jkxakd9l36z9y5"; + }; + + # libdf is an alternative name for libhdf (hdf4) + preConfigure = lib.optionalString (hdf4 != null) + '' + substituteInPlace configure \ + --replace "-ldf" "-lhdf" \ + ''; + + preBuild = lib.optionalString hdf5.mpiSupport "export CC=${hdf5.mpi}/bin/mpicc"; + + buildInputs = with lib; [ hdf5 libjpeg libpng ] ++ optional hdf5.mpiSupport hdf5.mpi + ++ optional (hdf4 != null) hdf4 + ++ optional (libmatheval != null) libmatheval; + + meta = with lib; { + description = "A set of utilities for visualization and conversion of scientific data in the free, portable HDF5 format"; + homepage = https://github.com/stevengj/h5utils; + license = with licenses; [ mit gpl2 ]; + maintainers = with maintainers; [ sfrijters ]; + }; + +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 908dbf4f0a1..7fe87becb09 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2769,6 +2769,11 @@ with pkgs; h2 = callPackage ../servers/h2 { }; + h5utils = callPackage ../tools/misc/h5utils { + libmatheval = null; + hdf4 = null; + }; + haproxy = callPackage ../tools/networking/haproxy { }; haveged = callPackage ../tools/security/haveged { }; |