litemdview: modernize

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
Petr Zahradnik
2025-03-17 11:49:02 +05:30
committed by John Titor
parent b401edfa7d
commit 49fd5ff33d
+17 -10
View File
@@ -5,18 +5,18 @@
gtkmm3,
autoreconfHook,
pkg-config,
versionCheckHook,
}:
stdenv.mkDerivation {
stdenv.mkDerivation (finalAttrs: {
pname = "litemdview";
# litemdview -v
version = "0.0.32";
src = fetchFromGitea {
domain = "notabug.org";
domain = "codeberg.org";
owner = "g0tsu";
repo = "litemdview";
rev = "litemdview-0.0.32";
rev = "litemdview-${finalAttrs.version}";
hash = "sha256-XGjP+7i3mYCEzPYwVY+75DARdXJFY4vUWHFpPeoNqAE=";
};
@@ -29,11 +29,18 @@ stdenv.mkDerivation {
pkg-config
];
meta = with lib; {
# Required for build with gcc-14
env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int";
homepage = "https://notabug.org/g0tsu/litemdview";
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.
@@ -56,9 +63,9 @@ stdenv.mkDerivation {
- Basic html support (very simple offline documents in html)
- Syntax highlighting
'';
license = licenses.gpl2Only;
maintainers = with maintainers; [ WhiteBlackGoose ];
platforms = platforms.linux;
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ WhiteBlackGoose ];
platforms = lib.platforms.linux;
mainProgram = "litemdview";
};
}
})