depot/third_party/nixpkgs/pkgs/by-name/md/md-tui/package.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

48 lines
1.1 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
stdenv,
darwin,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "md-tui";
version = "0.8.6";
src = fetchFromGitHub {
owner = "henriklovhaug";
repo = "md-tui";
rev = "refs/tags/v${version}";
hash = "sha256-3lNipCYhzqeAAUQZ2ajcOakNDlwSwbUUvP8Dtu6gBsI=";
};
cargoHash = "sha256-3hxU6yhMbcz3PhTDylJYnqI+eYoWJlf5Y2KecoY5zPo=";
nativeBuildInputs = [ pkg-config ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
darwin.apple_sdk.frameworks.CoreFoundation
darwin.apple_sdk.frameworks.CoreServices
darwin.apple_sdk.frameworks.Security
];
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Markdown renderer in the terminal";
homepage = "https://github.com/henriklovhaug/md-tui";
changelog = "https://github.com/henriklovhaug/md-tui/blob/${src.rev}/CHANGELOG.md";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [
GaetanLepage
anas
];
platforms = lib.platforms.all;
mainProgram = "mdt";
};
}