forked from mirrors/nixpkgs
Merge pull request #5188 from DamienCassou/umlet
New package for Umlet 13.1
This commit is contained in:
commit
5b8fb2239c
51
pkgs/tools/misc/umlet/default.nix
Normal file
51
pkgs/tools/misc/umlet/default.nix
Normal file
|
@ -0,0 +1,51 @@
|
|||
{ stdenv, fetchurl, jre, unzip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
major = "13";
|
||||
minor = "1";
|
||||
version = "${major}.${minor}";
|
||||
name = "umlet-${version}";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://www.umlet.com/umlet_${major}_${minor}/umlet_${version}.zip";
|
||||
sha256 = "0s10cmx0m5vbjj6y6gn007vzx1k5dlccgafccixl43q68dva3n3a";
|
||||
};
|
||||
|
||||
buildInputs = [ unzip ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out/bin"
|
||||
mkdir -p "$out/lib"
|
||||
|
||||
cp -R * "$out/lib"
|
||||
|
||||
cat > "$out/bin/umlet" << EOF
|
||||
#!${stdenv.shell}
|
||||
|
||||
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.
|
||||
UMLet runs stand-alone or as Eclipse plug-in on Windows, OS X and
|
||||
Linux.
|
||||
'';
|
||||
homepage = http://www.umlet.com;
|
||||
license = licenses.gpl3;
|
||||
maintainers = [ maintainers.DamienCassou ];
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
|
@ -2558,6 +2558,8 @@ let
|
|||
|
||||
ufraw = callPackage ../applications/graphics/ufraw { };
|
||||
|
||||
umlet = callPackage ../tools/misc/umlet { };
|
||||
|
||||
unetbootin = callPackage ../tools/cd-dvd/unetbootin { };
|
||||
|
||||
unfs3 = callPackage ../servers/unfs3 { };
|
||||
|
|
Loading…
Reference in a new issue