nixpkgs/pkgs/tools/misc/hdf4/default.nix
R. RyanTM 23f5fe768d hdf4: 4.2.13 -> 4.2.14 (#43198)
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/hdf/versions.

These checks were done:

- built on NixOS
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfls passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfed passed the binary check.
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/gif2hdf had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdf2gif had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdf2jpeg had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdf24to8 had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdf8to24 had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfcomp had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfpack had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdftopal had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdftor8 had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfunpac had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/jpeg2hdf had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/paltohdf had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/r8tohdf had a zero exit code or showed the expected version
- Warning: no invocation of /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/ristosds had a zero exit code or showed the expected version
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/vmake passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/vshow passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdp passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdfimport passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hdiff passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hrepack passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/hrepack_check passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/ncgen passed the binary check.
- /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin/bin/ncdump passed the binary check.
- 11 of 25 passed binary check by having a zero exit code.
- 0 of 25 passed binary check by having the new version present in output.
- found 4.2.14 with grep in /nix/store/f243368z016v0mwcx99gs6zc49nxyg55-hdf-4.2.14-bin
- directory tree listing: https://gist.github.com/c7f58f2da962d8b753b08b12178766f7
- du listing: https://gist.github.com/7d3dcd67602a8e6ffc864f5f43080c1d
2018-07-14 23:02:59 +02:00

78 lines
1.8 KiB
Nix

{ stdenv
, fetchurl
, cmake
, libjpeg
, zlib
, szip ? null
}:
stdenv.mkDerivation rec {
name = "hdf-${version}";
version = "4.2.14";
src = fetchurl {
url = "https://support.hdfgroup.org/ftp/HDF/releases/HDF${version}/src/hdf-${version}.tar.bz2";
sha256 = "0n29klrrbwan9307np0d9hr128dlpc4nnlf57a140080ll3jmp8l";
};
buildInputs = [
cmake
libjpeg
szip
zlib
];
preConfigure = stdenv.lib.optionalString (szip != null) "export SZIP_INSTALL=${szip}";
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DBUILD_TESTING=ON"
"-DHDF4_BUILD_TOOLS=ON"
"-DHDF4_BUILD_UTILS=ON"
"-DHDF4_BUILD_WITH_INSTALL_NAME=OFF"
"-DHDF4_ENABLE_JPEG_LIB_SUPPORT=ON"
"-DHDF4_ENABLE_NETCDF=OFF"
"-DHDF4_ENABLE_Z_LIB_SUPPORT=ON"
"-DHDF4_BUILD_FORTRAN=OFF"
"-DJPEG_DIR=${libjpeg}"
] ++ stdenv.lib.optionals (szip != null) [
"-DHDF4_ENABLE_SZIP_ENCODING=ON"
"-DHDF4_ENABLE_SZIP_SUPPORT=ON"
];
doCheck = true;
preCheck = ''
export LD_LIBRARY_PATH=$(pwd)/bin
'' + stdenv.lib.optionalString (stdenv.isDarwin) ''
export DYLD_LIBRARY_PATH=$(pwd)/bin
'';
excludedTests = [
"MFHDF_TEST-hdftest"
"MFHDF_TEST-hdftest-shared"
"HDP-dumpsds-18"
"NC_TEST-nctest"
];
checkPhase = let excludedTestsRegex = if (excludedTests != [])
then "(" + (stdenv.lib.concatStringsSep "|" excludedTests) + ")"
else ""; in ''
runHook preCheck
ctest -E "${excludedTestsRegex}" --output-on-failure
runHook postCheck
'';
outputs = [ "bin" "dev" "out" ];
postInstall = ''
moveToOutput bin "$bin"
'';
meta = {
description = "Data model, library, and file format for storing and managing data";
homepage = https://support.hdfgroup.org/products/hdf4/;
maintainers = with stdenv.lib.maintainers; [ knedlsepp ];
platforms = stdenv.lib.platforms.unix;
};
}