diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/feedreaders/feed2imap-go')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/feedreaders/feed2imap-go/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/feedreaders/feed2imap-go/default.nix b/nixpkgs/pkgs/applications/networking/feedreaders/feed2imap-go/default.nix new file mode 100644 index 000000000000..806e4fc147e0 --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/feedreaders/feed2imap-go/default.nix @@ -0,0 +1,34 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "feed2imap-go"; + version = "1.7.0"; + + src = fetchFromGitHub { + owner = "Necoro"; + repo = "feed2imap-go"; + rev = "v${version}"; + sha256 = "sha256-Qtpg8DvIFkba+Do8IwemBF0rt85wS4Tq7yOLsdpQFCs="; + }; + + 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-WFbfSzU1N2RAOMfCM7wqiAQ6R1HRaT0EfX4KYhstHJU="; + + # 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 ]; + }; +} |