nixos-config/pkgs/ratt.nix
foo-dogsquared abef9a7738 ratt: init at 2022-01-04-a9c98c53
Just for reassurance, I've tested it with the sample configurations.
It's fine for the most part.
2022-01-04 16:56:34 +08:00

28 lines
739 B
Nix

{ 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;
};
}