Files
nixpkgs/pkgs/by-name/md/mdterm/package.nix
2026-06-30 14:30:27 +02:00

41 lines
921 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
nix-update-script,
versionCheckHook,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "mdterm";
version = "2.0.0";
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "bahdotsh";
repo = "mdterm";
tag = "v${finalAttrs.version}";
hash = "sha256-a4Ba5QdrLuLgfB/QVpUYEpQ6rRSqTdz8zXcLwOGzjJM=";
};
cargoHash = "sha256-YUPKUFfbzL/1peXEAX5EDehWq4hFwxJLkP2DBDkY23E=";
passthru.updateScript = nix-update-script { };
doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];
meta = {
description = "A terminal-based Markdown browser";
homepage = "https://github.com/bahdotsh/mdterm";
changelog = "https://github.com/bahdotsh/mdterm/releases/tag/v${finalAttrs.version}";
license = lib.licenses.mit;
mainProgram = "mdterm";
maintainers = with lib.maintainers; [ pborzenkov ];
};
})