2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, jre, unzip, runtimeShell }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
stdenv.mkDerivation {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "umlet";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "15.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-09 19:29:22 +00:00
|
|
|
# NOTE: The download URL breaks consistency - sometimes w/ patch versions
|
|
|
|
# and sometimes w/o. Furthermore, for 15.1.0 they moved everything to the
|
|
|
|
# new /download subfolder.
|
|
|
|
# As releases are very rarely, just modify it by hand..
|
|
|
|
url = "https://www.umlet.com/download/umlet_15_1/umlet-standalone-15.1.zip";
|
|
|
|
hash = "sha256-M6oVWbOmPBTygS+TFkY9PWucFfYLD33suNUuWpFLMIo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
nativeBuildInputs = [ unzip ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
mkdir -p "$out/lib"
|
|
|
|
|
|
|
|
cp -R * "$out/lib"
|
|
|
|
|
|
|
|
cat > "$out/bin/umlet" << EOF
|
|
|
|
#!${runtimeShell}
|
|
|
|
|
|
|
|
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-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +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.
|
|
|
|
UMLet runs stand-alone or as Eclipse plug-in on Windows, macOS and
|
|
|
|
Linux.
|
|
|
|
'';
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://www.umlet.com";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
2020-08-20 17:08:02 +00:00
|
|
|
maintainers = with maintainers; [ oxzi ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|