f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
32 lines
849 B
Nix
32 lines
849 B
Nix
{ lib, stdenv, fetchurl, nixosTests }:
|
|
|
|
let
|
|
version = "1.2024.6";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "plantuml-server";
|
|
inherit version;
|
|
src = fetchurl {
|
|
url = "https://github.com/plantuml/plantuml-server/releases/download/v${version}/plantuml-v${version}.war";
|
|
sha256 = "sha256-5+2Qut9c/UrwfiJXMm2Ix+ABCDCM65L1jpJdamjZ4k4=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
installPhase = ''
|
|
mkdir -p "$out/webapps"
|
|
cp "$src" "$out/webapps/plantuml.war"
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) plantuml-server;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Web application to generate UML diagrams on-the-fly";
|
|
homepage = "https://plantuml.com/";
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
|
license = licenses.gpl3Plus;
|
|
platforms = platforms.all;
|
|
maintainers = with maintainers; [ truh ];
|
|
};
|
|
}
|