10 desktopItem = makeDesktopItem {
14 genericName = "Molecular Modeler";
17 "chemical/x-mdl-molfile"
19 "chemical/seq-aa-fasta"
20 "chemical/seq-na-fasta"
24 categories = [ "Graphics" "Education" "Science" "Chemistry" ];
27 stdenv.mkDerivation rec {
32 baseVersion = "${lib.versions.major version}.${lib.versions.minor version}";
34 url = "mirror://sourceforge/jmol/Jmol/Version%20${baseVersion}/Jmol%20${version}/Jmol-${version}-binary.tar.gz";
35 hash = "sha256-mjID6o+2yhzKd1g3MO4as1dA11nhessjzCDHSUyUQBw=";
39 sed -i -e "4s:.*:command=${jre}/bin/java:" -e "10s:.*:jarpath=$out/share/jmol/Jmol.jar:" -e "11,21d" jmol
43 mkdir -p "$out/share/jmol" "$out/bin"
45 ${unzip}/bin/unzip jsmol.zip -d "$out/share/"
47 cp *.jar jmol.sh "$out/share/jmol"
48 cp -r ${desktopItem}/share/applications $out/share
52 enableParallelBuilding = true;
55 description = "Java 3D viewer for chemical structures";
57 homepage = "https://sourceforge.net/projects/jmol";
58 sourceProvenance = with sourceTypes; [ binaryBytecode ];
59 license = licenses.lgpl2;
60 platforms = platforms.all;
61 maintainers = with maintainers; [ mounium ] ++ teams.sage.members;