2023-07-31 18:09:12 +02:00
|
|
|
{ lib
|
|
|
|
, buildNpmPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildNpmPackage rec {
|
|
|
|
pname = "reveal-md";
|
2023-12-23 05:47:18 +01:00
|
|
|
version = "5.5.2";
|
2023-07-31 18:09:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "webpro";
|
|
|
|
repo = "reveal-md";
|
|
|
|
rev = version;
|
2023-12-23 05:47:18 +01:00
|
|
|
hash = "sha256-Uge7N6z9O1wc+nW/0k5qz+CPYbYgr7u2mulH75pXvHY=";
|
2023-07-31 18:09:12 +02:00
|
|
|
};
|
|
|
|
|
2023-12-23 05:47:18 +01:00
|
|
|
npmDepsHash = "sha256-+gzur0pAmZe4nrDxNQwjFn/hM9TvZEd6JzLOnJLhNtg=";
|
2023-07-31 18:09:12 +02:00
|
|
|
|
|
|
|
env = {
|
|
|
|
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
dontNpmBuild = true;
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
|
|
|
|
npm run test
|
|
|
|
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Get beautiful reveal.js presentations from your Markdown files";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "reveal-md";
|
2023-07-31 18:09:12 +02:00
|
|
|
homepage = "https://github.com/webpro/reveal-md";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ sagikazarmark ];
|
|
|
|
};
|
|
|
|
}
|