2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, cmake, javac }:
|
2017-08-22 00:59:37 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "hdf-java";
|
2017-08-22 00:59:37 +00:00
|
|
|
version = "3.3.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/hdfjni-${version}/src/CMake-hdfjava-${version}.tar.gz";
|
|
|
|
sha256 = "0m1gp2aspcblqzmpqbdpfp6giskws85ds6p5gz8sx7asyp7wznpr";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake javac ];
|
|
|
|
|
2019-06-19 15:36:06 +00:00
|
|
|
dontConfigure = true;
|
2017-08-22 00:59:37 +00:00
|
|
|
buildPhase = "./build-hdfjava-unix.sh";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out
|
|
|
|
cp -r build/_CPack_Packages/Linux/TGZ/HDFJava-3.3.2-Linux/HDF_Group/HDFJava/${version}/* $out/
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Java package that implements HDF4 and HDF5 data objects in an object-oriented form";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = lib.licenses.free; # BSD-like
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://support.hdfgroup.org/products/java/index.html";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2017-08-22 00:59:37 +00:00
|
|
|
};
|
|
|
|
}
|