nixpkgs/pkgs/by-name/fe/feed2imap-go/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

40 lines
962 B
Nix
Raw Normal View History

2023-03-23 09:42:09 +00:00
{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "feed2imap-go";
2024-07-12 00:48:39 +00:00
version = "1.7.2";
2023-03-23 09:42:09 +00:00
src = fetchFromGitHub {
owner = "Necoro";
repo = "feed2imap-go";
rev = "v${version}";
2024-07-12 00:48:39 +00:00
sha256 = "sha256-LMtuGrNRVG3/2cgZFS7YlVmassbWDhH/nQgPh08NmpA=";
2023-03-23 09:42:09 +00:00
};
ldflags = [
"-s"
"-w"
"-X github.com/Necoro/feed2imap-go/pkg/version.version=${version}"
"-X github.com/Necoro/feed2imap-go/pkg/version.commit=nixpkgs"
];
2024-07-12 00:48:39 +00:00
vendorHash = "sha256-3J9fd/ogClQ+1a2ORahwf+JwkC4b1+pR1vdVjwLutoY=";
2023-03-23 09:42:09 +00:00
# The print-cache tool is not an end-user tool (https://github.com/Necoro/feed2imap-go/issues/94)
postInstall = ''
rm -f $out/bin/print-cache
'';
meta = with lib; {
description = "Uploads rss feeds as e-mails onto an IMAP server";
mainProgram = "feed2imap-go";
2023-03-23 09:42:09 +00:00
homepage = "https://github.com/Necoro/feed2imap-go";
license = licenses.gpl2;
maintainers = with maintainers; [ nomeata ];
};
}