Files
nixpkgs/pkgs/by-name/fe/feed2imap-go/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

40 lines
962 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "feed2imap-go";
version = "1.8.0";
src = fetchFromGitHub {
owner = "Necoro";
repo = "feed2imap-go";
rev = "v${version}";
sha256 = "sha256-7ce2G2t+7P+7Ga+BLyGF4lW4BB2yaE9rV/dxBFvdPEU=";
};
ldflags = [
"-s"
"-w"
"-X github.com/Necoro/feed2imap-go/pkg/version.version=${version}"
"-X github.com/Necoro/feed2imap-go/pkg/version.commit=nixpkgs"
];
vendorHash = "sha256-3z3SPJ5xsz0LRjzOeOQnAuCpIAAtEkn9itoslvJhmTo=";
# 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";
homepage = "https://github.com/Necoro/feed2imap-go";
license = licenses.gpl2;
maintainers = with maintainers; [ nomeata ];
};
}