36 lines
928 B
Nix
36 lines
928 B
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
versionCheckHook,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "mdwatch";
|
|
version = "0.1.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "santoshxshrestha";
|
|
repo = "mdwatch";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-o9WQiwftaNl7TeR+5CqkT3BmDnm2laiD8NFPPyurYYQ=";
|
|
};
|
|
|
|
cargoHash = "sha256-qOQR/JHjfU4e60FrwwJB/5uWIficiSlKKNEVra6xLF0=";
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
doInstallCheck = true;
|
|
nativeInstallCheckInputs = [ versionCheckHook ];
|
|
|
|
meta = {
|
|
description = "Simple CLI tool to live-preview Markdown files in your browser";
|
|
homepage = "https://github.com/santoshxshrestha/mdwatch";
|
|
changelog = "https://github.com/santoshxshrestha/mdwatch/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ x123 ];
|
|
mainProgram = "mdwatch";
|
|
};
|
|
})
|