depot/pkgs/by-name/ma/marked-man/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

35 lines
868 B
Nix

{ lib
, buildNpmPackage
, fetchFromGitHub
}:
buildNpmPackage rec {
pname = "marked-man";
version = "2.1.0";
src = fetchFromGitHub {
owner = "kapouer";
repo = "marked-man";
rev = version;
hash = "sha256-RzPKahYxBdWZi1SwIv7Ju1cAQ4s0ANkCivFJItPYGCY=";
};
# https://github.com/kapouer/marked-man/issues/37
prePatch = ''
cp ${./package-lock.json} ./package-lock.json
'';
npmDepsHash = "sha256-8m0Xgq3O69hbSQArSrU/gbJvBEGP6rHK4to16QkXG6M=";
dontNpmBuild = true;
meta = {
description = "Markdown to roff wrapper around marked";
homepage = "https://github.com/kapouer/marked-man";
changelog = "https://github.com/kapouer/marked-man/blob/${version}/CHANGES.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ atemu ];
mainProgram = "marked-man";
platforms = lib.platforms.all;
};
}