litemdview: modernize

Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>

authored by Petr Zahradnik and committed by John Titor 49fd5ff3 b401edfa

+17 -10
+17 -10
pkgs/by-name/li/litemdview/package.nix
··· 5 5 gtkmm3, 6 6 autoreconfHook, 7 7 pkg-config, 8 + versionCheckHook, 8 9 }: 9 10 10 - stdenv.mkDerivation { 11 + stdenv.mkDerivation (finalAttrs: { 11 12 pname = "litemdview"; 12 - # litemdview -v 13 13 version = "0.0.32"; 14 14 15 15 src = fetchFromGitea { 16 - domain = "notabug.org"; 16 + domain = "codeberg.org"; 17 17 owner = "g0tsu"; 18 18 repo = "litemdview"; 19 - rev = "litemdview-0.0.32"; 19 + rev = "litemdview-${finalAttrs.version}"; 20 20 hash = "sha256-XGjP+7i3mYCEzPYwVY+75DARdXJFY4vUWHFpPeoNqAE="; 21 21 }; 22 22 ··· 29 29 pkg-config 30 30 ]; 31 31 32 - meta = with lib; { 33 32 # Required for build with gcc-14 34 33 env.NIX_CFLAGS_COMPILE = "-Wno-error=implicit-int"; 35 34 36 - homepage = "https://notabug.org/g0tsu/litemdview"; 35 + enableParallelBuilding = true; 36 + 37 + nativeInstallCheckInputs = [ 38 + versionCheckHook 39 + ]; 40 + doInstallCheck = true; 41 + 42 + meta = { 43 + homepage = "https://codeberg.org/g0tsu/litemdview"; 37 44 description = "Suckless markdown viewer"; 38 45 longDescription = '' 39 46 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 63 - Basic html support (very simple offline documents in html) 57 64 - Syntax highlighting 58 65 ''; 59 - license = licenses.gpl2Only; 60 - maintainers = with maintainers; [ WhiteBlackGoose ]; 61 - platforms = platforms.linux; 66 + license = lib.licenses.gpl2Plus; 67 + maintainers = with lib.maintainers; [ WhiteBlackGoose ]; 68 + platforms = lib.platforms.linux; 62 69 mainProgram = "litemdview"; 63 70 }; 64 - } 71 + })