nixpkgs/pkgs/tools/misc/plantuml-server/default.nix
Krzysztof Nazarewski 759517412f
plantuml-server: fixed unstable deps
after merging https://github.com/NixOS/nixpkgs/pull/163431 `plantuml-server-*-deps` derivation turned out unstable, this commit switches to fetching `plantuml.war` directly from releases
2022-03-15 16:50:08 +01:00

27 lines
710 B
Nix

{ lib, stdenv, fetchurl }:
let
version = "1.2022.2";
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-h4ulXzZ5L+VPhk2CnZQNxfnEJzWT3B9TNvDEWt4o9Hk=";
};
dontUnpack = true;
installPhase = ''
mkdir -p "$out/webapps"
cp "$src" "$out/webapps/plantuml.war"
'';
meta = with lib; {
description = "A web application to generate UML diagrams on-the-fly.";
homepage = "https://plantuml.com/";
license = licenses.gpl3Plus;
platforms = platforms.all;
maintainers = with maintainers; [ truh ];
};
}