Skip to content

Commit 0a7b2aa

Browse files
authored
pandoc-ext-diagram: init at 1.2.0 (NixOS#461272)
2 parents f54b1ef + 6b9a10f commit 0a7b2aa

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
lib,
3+
stdenvNoCC,
4+
fetchFromGitHub,
5+
}:
6+
7+
stdenvNoCC.mkDerivation {
8+
pname = "pandoc-ext-diagram";
9+
version = "1.2.0";
10+
11+
src = fetchFromGitHub {
12+
owner = "pandoc-ext";
13+
repo = "diagram";
14+
tag = "v1.2.0";
15+
hash = "sha256-NuHru6uYewuFksWGlWkvQRc6NDC5S4mnnmJlDQbVF+c=";
16+
};
17+
18+
dontBuild = true;
19+
20+
installPhase = ''
21+
runHook preInstall
22+
23+
install -D ./_extensions/diagram/*.lua -t $out
24+
25+
runHook postInstall
26+
'';
27+
28+
meta = {
29+
description = "Generate diagrams from embedded code; supports Mermaid, Dot/GraphViz, PlantUML, Asymptote, D2, CeTZ, and TikZ";
30+
homepage = "https://github.com/pandoc-ext/diagram";
31+
license = lib.licenses.mit;
32+
maintainers = with lib.maintainers; [ drupol ];
33+
platforms = lib.platforms.all;
34+
};
35+
}

0 commit comments

Comments
 (0)