Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
77 lines
1.8 KiB
Nix
77 lines
1.8 KiB
Nix
{
|
|
stdenvNoCC,
|
|
lib,
|
|
makeDesktopItem,
|
|
copyDesktopItems,
|
|
fetchurl,
|
|
jdk,
|
|
makeBinaryWrapper,
|
|
imagemagick,
|
|
}:
|
|
|
|
let
|
|
jdkWithFX = jdk.override { enableJavaFX = true; };
|
|
in
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "jetuml";
|
|
version = "3.9";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/prmr/JetUML/releases/download/v${finalAttrs.version}/JetUML-${finalAttrs.version}.jar";
|
|
hash = "sha256-wACGbHeRQ5rXcuI1J3eTfQraWp8eWtkIAPo7BNGcFUU=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
strictDeps = true;
|
|
|
|
nativeBuildInputs = [
|
|
makeBinaryWrapper
|
|
copyDesktopItems
|
|
imagemagick
|
|
];
|
|
|
|
desktopItems = [
|
|
(makeDesktopItem {
|
|
name = "jetuml";
|
|
desktopName = "JetUML";
|
|
genericName = "UML Tool";
|
|
categories = [
|
|
"Application"
|
|
"Development"
|
|
"ProjectManagement"
|
|
];
|
|
icon = "jet";
|
|
exec = "jetuml";
|
|
comment = finalAttrs.meta.description;
|
|
})
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
${jdkWithFX}/lib/openjdk/bin/jar xf $src jet.png
|
|
magick jet.png -resize 128x128 jet128.png
|
|
magick jet.png -resize 48x48 jet48.png
|
|
install -Dm444 jet48.png $out/share/icons/hicolor/48x48/apps/jet.png
|
|
install -Dm444 jet128.png $out/share/icons/hicolor/128x128/apps/jet.png
|
|
|
|
install -Dm444 $src $out/share/java/JetUML-${finalAttrs.version}.jar
|
|
|
|
makeWrapper ${jdkWithFX}/lib/openjdk/bin/java $out/bin/jetuml \
|
|
--add-flags "-jar $out/share/java/JetUML-${finalAttrs.version}.jar"
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://www.jetuml.org/";
|
|
description = "Desktop application for fast UML diagramming";
|
|
mainProgram = "jetuml";
|
|
sourceProvenance = [ lib.sourceTypes.binaryBytecode ];
|
|
license = lib.licenses.gpl3Plus;
|
|
platforms = lib.platforms.all;
|
|
maintainers = [ lib.maintainers.felissedano ];
|
|
};
|
|
})
|