From 26bde9126b414cfc30db9fe666e6336d648f4b7e Mon Sep 17 00:00:00 2001 From: x123 Date: Sat, 2 Aug 2025 17:38:12 +0200 Subject: [PATCH] mdwatch: init at 0.1.11 --- pkgs/by-name/md/mdwatch/package.nix | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 pkgs/by-name/md/mdwatch/package.nix diff --git a/pkgs/by-name/md/mdwatch/package.nix b/pkgs/by-name/md/mdwatch/package.nix new file mode 100644 index 000000000000..ed516d62eafe --- /dev/null +++ b/pkgs/by-name/md/mdwatch/package.nix @@ -0,0 +1,33 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + nix-update-script, + versionCheckHook, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "mdwatch"; + version = "0.1.11"; + + src = fetchFromGitHub { + owner = "santoshxshrestha"; + repo = "mdwatch"; + tag = "v${finalAttrs.version}"; + hash = "sha256-v+QsSPknUAFk+GC8D0wtA8VTcCWeb8DX6inL6WNl8gQ="; + }; + + cargoHash = "sha256-4Xvi5DxlqxfwnIa00Dr7tRzYa8/52BH/SODiNenlFDg="; + + 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"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ x123 ]; + mainProgram = "mdwatch"; + }; +})