depot/third_party/nixpkgs/pkgs/tools/text/reveal-md/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

41 lines
786 B
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "reveal-md";
version = "5.5.1";
src = fetchFromGitHub {
owner = "webpro";
repo = "reveal-md";
rev = version;
hash = "sha256-BlUZsETMdOmnz+OFGQhQ9aLHxIIAZ12X1ipy3u59zxo=";
};
npmDepsHash = "sha256-xaDBB16egGi8zThHRrhcN8TVf6Nqkx8fkbxWqvJwJb4=";
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";
homepage = "https://github.com/webpro/reveal-md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ sagikazarmark ];
};
}