push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
{
buildNpmPackage,
lib,
stdenv,
fetchFromGitHub,
chromium,
nix-update-script,
}:
let
version = "11.6.0";
in
buildNpmPackage {
pname = "mermaid-cli";
version = version;
src = fetchFromGitHub {
owner = "mermaid-js";
repo = "mermaid-cli";
rev = version;
hash = "sha256-9Ozi5mAeFVdwGMjvlLG4hMWnCGi552SsT5RuvRiF9ww=";
};
patches = [
./remove-puppeteer-from-dev-deps.patch # https://github.com/mermaid-js/mermaid-cli/issues/830
];
npmDepsHash = "sha256-SHGYv/IwrCB02M8w5HsEsB7BwWVRFYNDYJFRDgG3a14=";
env = {
PUPPETEER_SKIP_DOWNLOAD = true;
};
npmBuildScript = "prepare";
makeWrapperArgs = lib.lists.optional (lib.meta.availableOn stdenv.hostPlatform chromium) "--set PUPPETEER_EXECUTABLE_PATH '${lib.getExe chromium}'";
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Generation of diagrams from text in a similar manner as markdown";
homepage = "https://github.com/mermaid-js/mermaid-cli";
license = lib.licenses.mit;
mainProgram = "mmdc";
maintainers = with lib.maintainers; [ ysndr ];
platforms = lib.platforms.all;
};
}

View File

@@ -0,0 +1,16 @@
Subject: [PATCH] remove pupperteer from dev dependencies
---
Index: package.json
<+>UTF-8
===================================================================
diff --git a/package.json b/package.json
--- a/package.json (revision fa593dc39619f44b57a922927a66346248f31d7d)
+++ b/package.json (date 1736721981718)
@@ -45,7 +45,6 @@
"@tsconfig/node18": "^18.2.4",
"@types/node": "~18.19.31",
"jest": "^29.0.1",
- "puppeteer": "^23.1.1",
"standard": "^17.0.0",
"typescript": "^5.0.1-rc",
"vite": "^6.0.2",