mermaid-filter: init at 1.4.6
This commit is contained in:
parent
60ac106c34
commit
0de6d03421
39
pkgs/tools/misc/mermaid-filter/default.nix
Normal file
39
pkgs/tools/misc/mermaid-filter/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -889,6 +889,8 @@ with pkgs;
|
||||||
|
|
||||||
mangal = callPackage ../applications/misc/mangal { };
|
mangal = callPackage ../applications/misc/mangal { };
|
||||||
|
|
||||||
|
mermaid-filter = callPackage ../tools/misc/mermaid-filter { };
|
||||||
|
|
||||||
graphw00f = callPackage ../tools/security/graphw00f { };
|
graphw00f = callPackage ../tools/security/graphw00f { };
|
||||||
|
|
||||||
opendrop = python3Packages.callPackage ../tools/networking/opendrop { };
|
opendrop = python3Packages.callPackage ../tools/networking/opendrop { };
|
||||||
|
|
Loading…
Reference in a new issue