summaryrefslogtreecommitdiff
path: root/pkgs/by-name/md/mdfried/package.nix
blob: d248affdcfb3528b4c75086e049dea318cb67260 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  lib,
  rustPlatform,
  fetchFromGitHub,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "mdfried";
  version = "0.12.4";

  src = fetchFromGitHub {
    owner = "benjajaja";
    repo = "mdfried";
    tag = "v${finalAttrs.version}";
    hash = "sha256-V4mSMBvezkIp7+95W3DiGYIFiNPC3g535j3gnske3eU=";
  };

  cargoHash = "sha256-xAoe6IeI9VBnofC/yuOAbKjsWyHV5AG4KwmyptQzRsQ=";

  doCheck = true;

  meta = {
    description = "Markdown viewer TUI for the terminal, with big text and image rendering";
    homepage = "https://github.com/benjajaja/mdfried";
    license = lib.licenses.gpl3Plus;
    maintainers = with lib.maintainers; [ benjajaja ];
    platforms = lib.platforms.unix;
    mainProgram = "mdfried";
  };
})