Merge pull request #236667 from ners/mermaid-filter

mermaid-filter: init at 1.4.6
This commit is contained in:
Sandro 2023-06-19 01:24:30 +02:00 committed by GitHub
commit c1bca7fe84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -897,6 +897,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 { };