Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #28455 from veprbl/hdfview

hdfview: init at 2.14

authored by Jörg Thalheim and committed by GitHub d154c6e3 3b234cfb

+75
+1
pkgs/tools/misc/hdf5/default.nix
··· 55 applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and 56 applications for managing, manipulating, viewing, and analyzing data in the HDF5 format. 57 ''; 58 homepage = https://www.hdfgroup.org/HDF5/; 59 platforms = stdenv.lib.platforms.unix; 60 };
··· 55 applications to evolve in their use of HDF5. The HDF5 Technology suite includes tools and 56 applications for managing, manipulating, viewing, and analyzing data in the HDF5 format. 57 ''; 58 + license = stdenv.lib.licenses.free; # BSD-like 59 homepage = https://www.hdfgroup.org/HDF5/; 60 platforms = stdenv.lib.platforms.unix; 61 };
+27
pkgs/tools/misc/hdfjava/default.nix
···
··· 1 + { stdenv, fetchurl, cmake, javac }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "hdf-java-${version}"; 5 + version = "3.3.2"; 6 + 7 + src = fetchurl { 8 + url = "http://www.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/hdfjni-${version}/src/CMake-hdfjava-${version}.tar.gz"; 9 + sha256 = "0m1gp2aspcblqzmpqbdpfp6giskws85ds6p5gz8sx7asyp7wznpr"; 10 + }; 11 + 12 + nativeBuildInputs = [ cmake javac ]; 13 + 14 + configurePhase = "true"; 15 + buildPhase = "./build-hdfjava-unix.sh"; 16 + installPhase = '' 17 + mkdir -p $out 18 + cp -r build/_CPack_Packages/Linux/TGZ/HDFJava-3.3.2-Linux/HDF_Group/HDFJava/${version}/* $out/ 19 + ''; 20 + 21 + meta = { 22 + description = "A Java package that implements HDF4 and HDF5 data objects in an object-oriented form"; 23 + license = stdenv.lib.licenses.free; # BSD-like 24 + homepage = https://support.hdfgroup.org/products/java/index.html; 25 + platforms = stdenv.lib.platforms.linux; 26 + }; 27 + }
+39
pkgs/tools/misc/hdfview/default.nix
···
··· 1 + { stdenv, fetchurl, cmake, ant, javac, hdf_java }: 2 + 3 + stdenv.mkDerivation rec { 4 + name = "hdfview-${version}"; 5 + version = "2.14"; 6 + 7 + src = fetchurl { 8 + url = "http://support.hdfgroup.org/ftp/HDF5/hdf-java/current/src/${name}.tar.gz"; 9 + sha256 = "0lv9djfm7hnp14mcyzbiax3xjb8vkbzhh7bdl6cvgy53pc08784p"; 10 + }; 11 + 12 + nativeBuildInputs = [ ant javac ]; 13 + 14 + HDFLIBS = hdf_java; 15 + 16 + buildPhase = '' 17 + ant run 18 + ant package 19 + ''; 20 + 21 + installPhase = '' 22 + mkdir $out 23 + # exclude jre 24 + cp -r build/HDF_Group/HDFView/*/{lib,share} $out/ 25 + mkdir $out/bin 26 + cp -r build/HDF_Group/HDFView/*/hdfview.sh $out/bin/hdfview 27 + chmod +x $out/bin/hdfview 28 + substituteInPlace $out/bin/hdfview \ 29 + --replace "@JAVABIN@" "${javac}/bin/" \ 30 + --replace "@INSTALLDIR@" "$out" 31 + ''; 32 + 33 + meta = { 34 + description = "A visual tool for browsing and editing HDF4 and HDF5 files"; 35 + license = stdenv.lib.licenses.free; # BSD-like 36 + homepage = https://support.hdfgroup.org/products/java/index.html; 37 + platforms = stdenv.lib.platforms.linux; 38 + }; 39 + }
+8
pkgs/top-level/all-packages.nix
··· 2472 inherit gfortran; 2473 }); 2474 2475 hecate = callPackage ../applications/editors/hecate { }; 2476 2477 heaptrack = libsForQt5.callPackage ../development/tools/profiling/heaptrack {};
··· 2472 inherit gfortran; 2473 }); 2474 2475 + hdfview = callPackage ../tools/misc/hdfview { 2476 + javac = jdk; 2477 + }; 2478 + 2479 + hdf_java = callPackage ../tools/misc/hdfjava { 2480 + javac = jdk; 2481 + }; 2482 + 2483 hecate = callPackage ../applications/editors/hecate { }; 2484 2485 heaptrack = libsForQt5.callPackage ../development/tools/profiling/heaptrack {};