feat: correct neomutt keybinds, add rdrview

This commit is contained in:
Youwen Wu 2024-12-28 04:02:00 -08:00
parent 24a30547d5
commit 44bc095527
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
4 changed files with 240 additions and 1 deletions

View file

@ -0,0 +1,45 @@
{
lib,
stdenv,
fetchFromGitHub,
libxml2,
curl,
libseccomp,
installShellFiles,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rdrview";
version = "0.1.3";
src = fetchFromGitHub {
owner = "eafer";
repo = "rdrview";
rev = "v${finalAttrs.version}";
hash = "sha256-UFHRsaLGa/jv/S+VXtXIMgLuQUPgqbRgD35bBrJyuZA=";
};
buildInputs = [
libxml2
curl
libseccomp
];
nativeBuildInputs = [ installShellFiles ];
installPhase = ''
runHook preInstall
install -Dm755 rdrview -t $out/bin
installManPage rdrview.1
runHook postInstall
'';
enableParallelBuilding = true;
meta = with lib; {
description = "Command line tool to extract main content from a webpage";
homepage = "https://github.com/eafer/rdrview";
license = licenses.asl20;
maintainers = with maintainers; [ djanatyn ];
mainProgram = "rdrview";
};
})

View file

@ -4,5 +4,6 @@ let
in
final: prev: {
modrinth-app = callPackage ./by-name/modrinth-app { };
hyprland-qtutils = callPackage ./by-name/hyprland-qtutils { };
# hyprland-qtutils = callPackage ./by-name/hyprland-qtutils { };
rdrview = callPackage ./by-name/rdrview { };
}