mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
41 lines
921 B
Nix
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 ];
|
|
};
|
|
})
|