diff --git a/pkgs/default.nix b/pkgs/default.nix index 734d60bc..91e41db8 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -18,6 +18,7 @@ with pkgs; { pop-launcher-plugin-duckduckgo-bangs = callPackage ./pop-launcher-plugin-duckduckgo-bangs.nix { }; photon-rss = callPackage ./photon-rss.nix { }; + ratt = callPackage ./ratt.nix { }; tic-80 = callPackage ./tic-80 { }; sioyek = libsForQt5.callPackage ./sioyek.nix { }; } diff --git a/pkgs/ratt.nix b/pkgs/ratt.nix new file mode 100644 index 00000000..7382f3c8 --- /dev/null +++ b/pkgs/ratt.nix @@ -0,0 +1,27 @@ +{ stdenv, lib, fetchFromSourcehut, buildGoModule }: + +buildGoModule rec { + pname = "ratt"; + version = "2022-01-04-a9c98c53"; + + src = fetchFromSourcehut { + owner = "~ghost08"; + repo = pname; + rev = "a9c98c535e82f5110e7e47c81ffd9c93dde63fb6"; + sha256 = "sha256-7Bu/Hr+HiIswURhvC3fItPQZN3Ca9WwqkZ4rGdaOXdQ="; + }; + + subPackages = [ "cmd/ratt" ]; + vendorSha256 = "sha256-JTlrtI3IS3hyQeHlS1ED7TObNon3bkNp6+CSVdbGD0A="; + + postInstall = '' + # Move the built-in packaged filters into the appropriate folder. + install -Dm644 confs/* -t $out/share/${pname} + ''; + + meta = with lib; { + homepage = "https://git.sr.ht/~ghost08/ratt"; + description = "Make an RSS feed on all the things"; + license = licenses.mit; + }; +}