diff --git a/pkgs/by-name/ra/ratt/package.nix b/pkgs/by-name/ra/ratt/package.nix index 525f1b7f95d9..442960f2db67 100644 --- a/pkgs/by-name/ra/ratt/package.nix +++ b/pkgs/by-name/ra/ratt/package.nix @@ -2,24 +2,39 @@ buildGoModule, fetchFromSourcehut, lib, + scdoc, + installShellFiles, }: buildGoModule rec { pname = "ratt"; - version = "unstable-2023-02-12"; + version = "0-unstable-2025-03-10"; src = fetchFromSourcehut { owner = "~ghost08"; repo = "ratt"; - rev = "ed1a675685b9d86d6602e168199ba9b4260f5f06"; - hash = "sha256-HfS97Lxt6FAj/2/WAzLI06F/h6TP5m2lHHOTAs8XNFY="; + rev = "7433a875fb5d8f614e8630cd50b3c9580ef931ce"; + hash = "sha256-u4rad2+SN1yMUjyDZgZo3XDQddICWfa35piYe6437MU="; }; + nativeBuildInputs = [ + installShellFiles + scdoc + ]; + proxyVendor = true; - vendorHash = "sha256-L8mDs9teQJW6P3dhKSLfzbpA7kzhJk61oR2q0ME+u0M="; + vendorHash = "sha256-W1snHDmy6Pg35jYfNmV5DpRpQpp9Ju0JjzwMRYGoqXY=="; # tests try to access the internet to scrape websites doCheck = false; + postInstall = '' + scdoc < doc/ratt.1.scd > doc/ratt.1 + installManPage doc/ratt.1 + + scdoc < doc/ratt.5.scd > doc/ratt.5 + installManPage doc/ratt.5 + ''; + meta = with lib; { description = "Tool for converting websites to rss/atom feeds"; homepage = "https://git.sr.ht/~ghost08/ratt";