11 rustPlatform.buildRustPackage rec {
15 src = fetchFromGitHub {
16 owner = "henriklovhaug";
18 rev = "refs/tags/v${version}";
19 hash = "sha256-3lNipCYhzqeAAUQZ2ajcOakNDlwSwbUUvP8Dtu6gBsI=";
22 cargoHash = "sha256-3hxU6yhMbcz3PhTDylJYnqI+eYoWJlf5Y2KecoY5zPo=";
24 nativeBuildInputs = [ pkg-config ];
26 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
27 darwin.apple_sdk.frameworks.CoreFoundation
28 darwin.apple_sdk.frameworks.CoreServices
29 darwin.apple_sdk.frameworks.Security
33 updateScript = nix-update-script { };
37 description = "Markdown renderer in the terminal";
38 homepage = "https://github.com/henriklovhaug/md-tui";
39 changelog = "https://github.com/henriklovhaug/md-tui/blob/${src.rev}/CHANGELOG.md";
40 license = lib.licenses.agpl3Only;
41 maintainers = with lib.maintainers; [
45 platforms = lib.platforms.all;