mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
hdfview: use finalAttrs: {} pattern
This commit is contained in:
parent
40bfbe3226
commit
aeb5f9a803
@ -1,11 +1,11 @@
|
||||
{ lib, stdenv, fetchurl, ant, jdk, hdf4, hdf5, makeDesktopItem, copyDesktopItems, strip-nondeterminism, stripJavaArchivesHook }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "hdfview";
|
||||
version = "3.3.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://support.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/hdfview-${version}/src/hdfview-${version}.tar.gz";
|
||||
url = "https://support.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/hdfview-${finalAttrs.version}/src/hdfview-${finalAttrs.version}.tar.gz";
|
||||
sha256 = "sha256-WcGYceMOB8gCycJSW4KdApy2gIBgTnE/d0PxGZClUqg=";
|
||||
};
|
||||
|
||||
@ -46,7 +46,7 @@ stdenv.mkDerivation rec {
|
||||
desktopName = name;
|
||||
exec = name;
|
||||
icon = name;
|
||||
comment = meta.description;
|
||||
comment = finalAttrs.finalPackage.meta.description;
|
||||
categories = [ "Science" "DataVisualization" ];
|
||||
};
|
||||
|
||||
@ -77,8 +77,8 @@ stdenv.mkDerivation rec {
|
||||
description = "A visual tool for browsing and editing HDF4 and HDF5 files";
|
||||
license = lib.licenses.free; # BSD-like
|
||||
homepage = "https://www.hdfgroup.org/downloads/hdfview";
|
||||
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
||||
platforms = lib.platforms.unix;
|
||||
maintainers = with lib.maintainers; [ jiegec ];
|
||||
mainProgram = "HDFView";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user