nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 buildGoModule,
3 fetchFromSourcehut,
4 lib,
5 scdoc,
6 installShellFiles,
7}:
8buildGoModule {
9 pname = "ratt";
10 version = "0-unstable-2025-03-10";
11
12 src = fetchFromSourcehut {
13 owner = "~ghost08";
14 repo = "ratt";
15 rev = "7433a875fb5d8f614e8630cd50b3c9580ef931ce";
16 hash = "sha256-u4rad2+SN1yMUjyDZgZo3XDQddICWfa35piYe6437MU=";
17 };
18
19 nativeBuildInputs = [
20 installShellFiles
21 scdoc
22 ];
23
24 proxyVendor = true;
25 vendorHash = "sha256-W1snHDmy6Pg35jYfNmV5DpRpQpp9Ju0JjzwMRYGoqXY==";
26
27 # tests try to access the internet to scrape websites
28 doCheck = false;
29
30 postInstall = ''
31 scdoc < doc/ratt.1.scd > doc/ratt.1
32 installManPage doc/ratt.1
33
34 scdoc < doc/ratt.5.scd > doc/ratt.5
35 installManPage doc/ratt.5
36 '';
37
38 meta = with lib; {
39 description = "Tool for converting websites to rss/atom feeds";
40 homepage = "https://git.sr.ht/~ghost08/ratt";
41 license = licenses.mit;
42 maintainers = with maintainers; [ kmein ];
43 mainProgram = "ratt";
44 };
45}