10 throwSystem = throw "Unsupported system: ${stdenv.system}";
12 "x86_64-linux" = "linux-x86-64";
13 }.${stdenv.system} or throwSystem;
15 in stdenv.mkDerivation rec {
19 # Their build instructions indicate to use the packaging script
21 url = "https://github.com/nroduit/Weasis/releases/download/v${version}/weasis-native.zip";
22 hash = "sha256-+Bi9rTuM9osKzbKVA4exqsFm8p9+1OHgJqRSNnCC6QQ=";
35 desktopName = "DICOMizer";
36 comment = "Convert standard images into DICOM";
42 desktopName = "Weasis";
43 comment = meta.description;
48 patchShebangs ./build/script/package-weasis.sh
54 ./build/script/package-weasis.sh --no-installer --jdk ${jre}
62 mkdir -p $out/share/{applications,pixmaps}
64 mv weasis-${platform}-jdk${lib.versions.major jre.version}-${version}/Weasis/* $out/
65 mv $out/lib/*.png $out/share/pixmaps/
71 description = "Multipurpose standalone and web-based DICOM viewer with a highly modular architecture";
72 homepage = "https://weasis.org";
73 # Using changelog from releases as it is more accurate
74 changelog = "https://github.com/nroduit/Weasis/releases/tag/v${version}";
75 license = with lib.licenses; [ asl20 epl20 ];
77 platforms = [ "x86_64-linux" ];
78 mainProgram = "Weasis";