2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre, unzip, runtimeShell }:
|
2014-11-30 11:56:08 +00:00
|
|
|
|
2022-04-30 15:30:57 +00:00
|
|
|
let
|
|
|
|
major = "15";
|
|
|
|
minor = "0";
|
|
|
|
patch = "0";
|
|
|
|
in stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "umlet";
|
2022-04-30 15:30:57 +00:00
|
|
|
version = "${major}.${minor}.${patch}";
|
2014-11-30 11:56:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2022-04-30 15:30:57 +00:00
|
|
|
url = "https://www.umlet.com/umlet_${major}_${minor}/umlet-standalone-${version}.zip";
|
|
|
|
sha256 = "sha256-gdvhqYGyrFuQhhrkF26wXb3TQLRCLm59/uSxTPmHdAE=";
|
2014-11-30 11:56:08 +00:00
|
|
|
};
|
|
|
|
|
2021-02-20 21:01:53 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2014-11-30 11:56:08 +00:00
|
|
|
|
|
|
|
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"
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-11-30 11:56:08 +00:00
|
|
|
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 22:05:18 +00:00
|
|
|
UMLet runs stand-alone or as Eclipse plug-in on Windows, macOS and
|
2014-11-30 11:56:08 +00:00
|
|
|
Linux.
|
|
|
|
'';
|
2022-04-30 15:30:57 +00:00
|
|
|
homepage = "https://www.umlet.com";
|
2014-11-30 11:56:08 +00:00
|
|
|
license = licenses.gpl3;
|
2020-08-15 13:25:59 +00:00
|
|
|
maintainers = with maintainers; [ oxzi ];
|
2014-11-30 11:56:08 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|