hdfview: 3.1.3 -> 3.1.4
Set machine.arch for aarch64 machines.
This commit is contained in:
parent
561721bbb8
commit
f4e3995bf6
1 changed files with 14 additions and 9 deletions
|
@ -2,29 +2,34 @@
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "hdfview";
|
pname = "hdfview";
|
||||||
version = "3.1.3";
|
version = "3.1.4";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://support.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/${pname}-${version}/src/${pname}-${version}.tar.gz";
|
url = "https://support.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/${pname}-${version}/src/${pname}-${version}.tar.gz";
|
||||||
sha256 = "sha256-VmgHSVMFoy09plU5pSnyaPz8N15toy7QfCtXI7mqDGY=";
|
sha256 = "sha256-iY/NUifU57aX795eWpaUBflrclF/nfvb3OKZEpD9VqA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
ant jdk
|
ant
|
||||||
nettools # "hostname" required
|
jdk
|
||||||
|
nettools # "hostname" required
|
||||||
copyDesktopItems
|
copyDesktopItems
|
||||||
];
|
];
|
||||||
|
|
||||||
HDFLIBS = (hdf4.override { javaSupport = true; }).out;
|
HDFLIBS = (hdf4.override { javaSupport = true; }).out;
|
||||||
HDF5LIBS = (hdf5.override { javaSupport = true; }).out;
|
HDF5LIBS = (hdf5.override { javaSupport = true; }).out;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase =
|
||||||
runHook preBuild
|
let
|
||||||
|
arch = if stdenv.isx86_64 then "x86_64" else "aarch64";
|
||||||
|
in
|
||||||
|
''
|
||||||
|
runHook preBuild
|
||||||
|
|
||||||
ant createJPackage
|
ant createJPackage -Dmachine.arch=${arch}
|
||||||
|
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
desktopItem = makeDesktopItem rec {
|
desktopItem = makeDesktopItem rec {
|
||||||
name = "HDFView";
|
name = "HDFView";
|
||||||
|
|
Loading…
Reference in a new issue