nixpkgs/pkgs/by-name/pl/plantuml-server/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
862 B
Nix
Raw Normal View History

{
lib,
stdenv,
fetchurl,
nixosTests,
}:
2020-07-08 15:55:37 +00:00
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=";
};
2020-07-08 15:55:37 +00:00
dontUnpack = true;
postInstall = ''
2020-07-08 15:55:37 +00:00
mkdir -p "$out/webapps"
cp "$src" "$out/webapps/plantuml.war"
2020-07-08 15:55:37 +00:00
'';
passthru.tests = {
inherit (nixosTests) plantuml-server;
};
meta = with lib; {
description = "Web application to generate UML diagrams on-the-fly";
2020-07-08 15:55:37 +00:00
homepage = "https://plantuml.com/";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
2021-05-15 09:56:22 +00:00
license = licenses.gpl3Plus;
2020-07-08 15:55:37 +00:00
platforms = platforms.all;
maintainers = with maintainers; [
truh
anthonyroussel
];
2020-07-08 15:55:37 +00:00
};
}