jmol: init at 14.29.12

This commit is contained in:
Timo Kaufmann 2018-04-11 11:33:26 +02:00 committed by Matthew Justin Bauer
parent be0b8f2cf6
commit b93e1fbbfb
2 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,44 @@
{ stdenv
, fetchurl
, unzip
, jre
}:
stdenv.mkDerivation rec {
version = "${baseVersion}.${patchVersion}";
baseVersion = "14.29";
patchVersion = "12";
pname = "jmol";
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://sourceforge/jmol/Jmol/Version%20${baseVersion}/Jmol%20${version}/Jmol-${version}-binary.tar.gz";
sha256 = "1ndq9am75janshrnk26334z1nmyh3k4bp20napvf2zv0lfp8k3bv";
};
buildInputs = [
jre
];
installPhase = ''
mkdir -p "$out/share/jmol"
mkdir -p "$out/bin"
${unzip}/bin/unzip jsmol.zip -d "$out/share/"
sed -i -e 's|command=java|command=${jre}/bin/java|' jmol.sh
cp *.jar jmol.sh "$out/share/jmol"
ln -s $out/share/jmol/jmol.sh "$out/bin/jmol"
'';
enableParallelBuilding = true;
meta = with stdenv.lib; {
description = "A Java 3D viewer for chemical structures";
homepage = https://sourceforge.net/projects/jmol;
license = licenses.lgpl2;
platforms = platforms.all;
maintainers = with maintainers; [ timokau ];
};
}

View file

@ -3110,6 +3110,8 @@ with pkgs;
jmespath = callPackage ../development/tools/jmespath { };
jmol = callPackage ../applications/science/chemistry/jmol { };
jmtpfs = callPackage ../tools/filesystems/jmtpfs { };
jnettop = callPackage ../tools/networking/jnettop { };