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
45 lines
943 B
Nix
45 lines
943 B
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
cairo,
|
|
pango,
|
|
pkg-config,
|
|
}:
|
|
|
|
buildNpmPackage {
|
|
pname = "excalidraw_export";
|
|
version = "1.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Timmmm";
|
|
repo = "excalidraw_export";
|
|
rev = "320c8be92f468e5e19564f83e37709b80afc0e46";
|
|
hash = "sha256-E5kYI8+hzObd2WNVBd0aQDKMH1Sns539loCQfClJs1Q=";
|
|
};
|
|
|
|
patches = [
|
|
# for compatibility with nodejs_22
|
|
# generated by running: `npm update nan`
|
|
./bump-nan.patch
|
|
];
|
|
|
|
npmDepsHash = "sha256-bU+q83Pmw6+mCF5rTR0DyYstUYVN+YxH9T9H7ZA15so=";
|
|
|
|
npmBuildScript = "compile";
|
|
|
|
buildInputs = [
|
|
cairo
|
|
pango
|
|
];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
meta = {
|
|
description = "CLI to export Excalidraw drawings to SVG and PDF";
|
|
homepage = "https://github.com/Timmmm/excalidraw_export";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ venikx ];
|
|
mainProgram = "excalidraw_export";
|
|
};
|
|
}
|