mermaid-filter: init at 1.4.6

This commit is contained in:
ners 2023-06-09 08:59:45 +02:00
parent 60ac106c34
commit 0de6d03421
2 changed files with 41 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, buildNpmPackage
, fetchFromGitHub
, makeWrapper
, chromium
}:
buildNpmPackage rec {
pname = "mermaid-filter";
version = "1.4.6";
src = fetchFromGitHub {
owner = "raghur";
repo = "mermaid-filter";
rev = "v${version}";
hash = "sha256-5MKiUeiqEeWicOIdqOJ22x3VswYKiK4RSxZRzJntO6M=";
};
npmDepsHash = "sha256-pnylo3dPgj7aD5czTWSV+uP5Cj8rVAsjZYoJ/WPRuuc=";
nativeBuildInputs = [ makeWrapper ];
env.PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = 1;
dontNpmBuild = true;
postInstall = ''
wrapProgram $out/bin/mermaid-filter \
--set PUPPETEER_EXECUTABLE_PATH ${chromium}/bin/chromium
'';
meta = with lib; {
description = "Pandoc filter for creating diagrams in mermaid syntax blocks in markdown docs";
homepage = "https://github.com/raghur/mermaid-filter";
license = licenses.bsd2;
maintainers = with maintainers; [ ners ];
platforms = chromium.meta.platforms;
};
}

View file

@ -889,6 +889,8 @@ with pkgs;
mangal = callPackage ../applications/misc/mangal { };
mermaid-filter = callPackage ../tools/misc/mermaid-filter { };
graphw00f = callPackage ../tools/security/graphw00f { };
opendrop = python3Packages.callPackage ../tools/networking/opendrop { };