mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 16:11:58 +00:00
28 lines
871 B
Nix
28 lines
871 B
Nix
|
{ stdenv, fetchurl, cmake, javac }:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
name = "hdf-java-${version}";
|
||
|
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 ];
|
||
|
|
||
|
configurePhase = "true";
|
||
|
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";
|
||
|
license = stdenv.lib.licenses.free; # BSD-like
|
||
|
homepage = https://support.hdfgroup.org/products/java/index.html;
|
||
|
platforms = stdenv.lib.platforms.linux;
|
||
|
};
|
||
|
}
|