depot/third_party/nixpkgs/pkgs/by-name/pl/plantuml-server/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

39 lines
862 B
Nix

{
lib,
stdenv,
fetchurl,
nixosTests,
}:
stdenv.mkDerivation rec {
pname = "plantuml-server";
version = "1.2024.7";
src = fetchurl {
url = "https://github.com/plantuml/plantuml-server/releases/download/v${version}/plantuml-v${version}.war";
hash = "sha256-9YTclV+FoiNbcpeNtlbbozqjB1BN9EJn03CzyHDbC+8=";
};
dontUnpack = true;
postInstall = ''
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
anthonyroussel
];
};
}