nixpkgs/pkgs/tools/text/reveal-md/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
817 B
Nix
Raw Normal View History

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";
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 ];
};
}