nodePackages.mermaid-cli: init 8.4.8

This commit is contained in:
Yannik Sander
2020-05-13 22:10:22 +02:00
parent e1773ee0bb
commit dddd1ad54d
3 changed files with 352 additions and 116 deletions

View File

@@ -114,6 +114,20 @@ let
buildInputs = [ self.node-pre-gyp ];
};
mermaid-cli = super."@mermaid-js/mermaid-cli".override (
if stdenv.isDarwin
then {}
else {
nativeBuildInputs = [ pkgs.makeWrapper ];
prePatch = ''
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1
'';
postInstall = ''
wrapProgram $out/bin/mmdc \
--set PUPPETEER_EXECUTABLE_PATH ${pkgs.chromium.outPath}/bin/chromium
'';
});
pnpm = super.pnpm.override {
nativeBuildInputs = [ pkgs.makeWrapper ];