Files
nixpkgs/pkgs/by-name/li/litemdview/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

72 lines
1.9 KiB
Nix
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
lib,
stdenv,
fetchFromGitea,
gtkmm3,
autoreconfHook,
pkg-config,
versionCheckHook,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "litemdview";
version = "0.0.32";
src = fetchFromGitea {
domain = "codeberg.org";
owner = "g0tsu";
repo = "litemdview";
rev = "litemdview-${finalAttrs.version}";
hash = "sha256-XGjP+7i3mYCEzPYwVY+75DARdXJFY4vUWHFpPeoNqAE=";
};
buildInputs = [
gtkmm3
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
# Required for build with gcc-14
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int";
enableParallelBuilding = true;
nativeInstallCheckInputs = [
versionCheckHook
];
doInstallCheck = true;
meta = {
homepage = "https://codeberg.org/g0tsu/litemdview";
description = "Suckless markdown viewer";
longDescription = ''
LiteMDview is a lightweight, extremely fast markdown viewer with lots of useful features. One of them is ability to use your prefered text editor to edit markdown files, every time you save the file, litemdview reloads those changes (I call it live-reload). It has a convinient navigation through local directories, has support for a basic "git-like" folders hierarchy as well as vimwiki projects.
Features:
- Does not use any of those bloated gecko(servo)-blink engines
- Lightweight and fast
- Live reload
- Convinient key bindings
- Supports text zooming
- Supports images
- Supports links
- Navigation history
- Cool name which associates with 1337, at least for me :)
- Builtin markdown css themes
- Supports emoji
- vimwiki support
- Basic html support (very simple offline documents in html)
- Syntax highlighting
'';
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ WhiteBlackGoose ];
platforms = lib.platforms.linux;
mainProgram = "litemdview";
};
})