2019-02-26 11:45:54 +00:00
|
|
|
{ stdenv, fetchurl, jre, unzip, runtimeShell }:
|
2014-11-30 11:56:08 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-10-07 19:59:56 +01:00
|
|
|
major = "14";
|
2018-11-15 09:53:29 +00:00
|
|
|
minor = "3";
|
|
|
|
version = "${major}.${minor}.0";
|
2014-11-30 11:56:08 +00:00
|
|
|
name = "umlet-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-10-07 19:59:56 +01:00
|
|
|
url = "http://www.umlet.com/umlet_${major}_${minor}/umlet-standalone-${version}.zip";
|
2018-11-15 09:53:29 +00:00
|
|
|
sha256 = "0jfyxjxsjx29xhs3fl0f574nyncmk9j5jp8zlgd401mcaznn9c7l";
|
2014-11-30 11:56:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mkdir -p "$out/lib"
|
|
|
|
|
|
|
|
cp -R * "$out/lib"
|
|
|
|
|
|
|
|
cat > "$out/bin/umlet" << EOF
|
2019-02-26 11:45:54 +00:00
|
|
|
#!${runtimeShell}
|
2014-11-30 11:56:08 +00:00
|
|
|
|
|
|
|
programDir="$out/lib"
|
|
|
|
cd "\$programDir"
|
|
|
|
if [ \$# -eq 1 ]
|
|
|
|
then "${jre}/bin/java" -jar "\$programDir/umlet.jar" -filename="\$1"
|
|
|
|
else "${jre}/bin/java" -jar "\$programDir/umlet.jar" "\$@"
|
|
|
|
fi
|
|
|
|
|
|
|
|
EOF
|
|
|
|
chmod a+x "$out/bin/umlet"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Free, open-source UML tool with a simple user interface";
|
|
|
|
longDescription = ''
|
|
|
|
UMLet is a free, open-source UML tool with a simple user interface:
|
|
|
|
draw UML diagrams fast, produce sequence and activity diagrams from
|
|
|
|
plain text, export diagrams to eps, pdf, jpg, svg, and clipboard,
|
|
|
|
share diagrams using Eclipse, and create new, custom UML elements.
|
2017-08-06 23:05:18 +01:00
|
|
|
UMLet runs stand-alone or as Eclipse plug-in on Windows, macOS and
|
2014-11-30 11:56:08 +00:00
|
|
|
Linux.
|
|
|
|
'';
|
|
|
|
homepage = http://www.umlet.com;
|
|
|
|
license = licenses.gpl3;
|
2018-11-15 09:53:29 +00:00
|
|
|
maintainers = with maintainers; [ geistesk ];
|
2014-11-30 11:56:08 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|