2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
32 lines
853 B
Nix
32 lines
853 B
Nix
{ lib, stdenv, fetchurl, nixosTests }:
|
|
|
|
let
|
|
version = "1.2023.12";
|
|
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-RHlv0kVJvAInLAd70001OTcJuh3Qg2C9o+//zR37zxc=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
installPhase = ''
|
|
mkdir -p "$out/webapps"
|
|
cp "$src" "$out/webapps/plantuml.war"
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit (nixosTests) plantuml-server;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "A 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 ];
|
|
};
|
|
}
|