about summary refs log tree commit diff
path: root/pkgs/applications/editors/vscode/extensions/jebbs.plantuml/default.nix
blob: 0f11ddc5ed2cbb94db001308ea73ab1fa85ecddc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, vscode-utils, plantuml, jq, moreutils }:

vscode-utils.buildVscodeMarketplaceExtension {
  mktplcRef = {
    name = "plantuml";
    publisher = "jebbs";
    version = "2.17.4";
    hash = "sha256-fnz6ubB73i7rJcv+paYyNV1r4cReuyFPjgPM0HO40ug=";
  };
  nativeBuildInputs = [ jq moreutils ];
  postInstall = ''
    cd "$out/$installPrefix"
    jq '.contributes.configuration.properties."plantuml.java".default = "${plantuml}/bin/plantuml"' package.json | sponge package.json
  '';

  meta = {
    description = "A Visual Studio Code extension for supporting Rich PlantUML";
    downloadPage =
      "https://marketplace.visualstudio.com/items?itemName=jebbs.plantuml";
    homepage = "https://github.com/qjebbs/vscode-plantuml";
    changelog =
      "https://marketplace.visualstudio.com/items/jebbs.plantuml/changelog";
    license = lib.licenses.mit;
    maintainers = [ lib.maintainers.victormignot ];
  };
}