2023-11-16 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchurl, nixosTests }:
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
let
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.2024.5";
|
2020-12-25 13:55:36 +00:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "plantuml-server";
|
|
|
|
inherit version;
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/plantuml/plantuml-server/releases/download/v${version}/plantuml-v${version}.war";
|
2024-06-05 15:53:02 +00:00
|
|
|
sha256 = "sha256-WbgjPPEm51DXzpSt2j8It8PWKRKrIK8HXoWY+N/1mlg=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
dontUnpack = true;
|
2020-12-25 13:55:36 +00:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/webapps"
|
2022-03-30 09:31:56 +00:00
|
|
|
cp "$src" "$out/webapps/plantuml.war"
|
2020-12-25 13:55:36 +00:00
|
|
|
'';
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit (nixosTests) plantuml-server;
|
|
|
|
};
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-01-13 08:15:51 +00:00
|
|
|
description = "A web application to generate UML diagrams on-the-fly";
|
2020-12-25 13:55:36 +00:00
|
|
|
homepage = "https://plantuml.com/";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-12-25 13:55:36 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
maintainers = with maintainers; [ truh ];
|
|
|
|
};
|
|
|
|
}
|