depot/third_party/nixpkgs/pkgs/tools/misc/plantuml-server/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

32 lines
851 B
Nix

{ lib, stdenv, fetchurl, nixosTests }:
let
version = "1.2024.5";
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-WbgjPPEm51DXzpSt2j8It8PWKRKrIK8HXoWY+N/1mlg=";
};
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 ];
};
}