nixpkgs/pkgs/by-name/li/litemdview/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

61 lines
1.7 KiB
Nix
Raw 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
}:
stdenv.mkDerivation rec {
pname = "litemdview";
# litemdview -v
version = "0.0.32";
src = fetchFromGitea {
domain = "notabug.org";
owner = "g0tsu";
repo = "litemdview";
rev = "litemdview-0.0.32";
hash = "sha256-XGjP+7i3mYCEzPYwVY+75DARdXJFY4vUWHFpPeoNqAE=";
};
buildInputs = [
gtkmm3
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
meta = with lib; {
homepage = "https://notabug.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 = licenses.gpl2Only;
maintainers = with maintainers; [ WhiteBlackGoose ];
platforms = platforms.linux;
mainProgram = "litemdview";
};
}