1{ buildGoModule
2, fetchFromGitHub
3, lib
4}:
5
6buildGoModule rec {
7 pname = "go-autoconfig";
8 version = "unstable-2022-08-03";
9
10 src = fetchFromGitHub {
11 owner = "L11R";
12 repo = pname;
13 rev = "b1b182202da82cc881dccd715564853395d4f76a";
14 sha256 = "sha256-Rbg6Ghp5NdcLSLSIhwwFFMKmZPWsboDyHCG6ePqSSZA=";
15 };
16
17 vendorSha256 = "sha256-pI2iucrt7XLLZNOz364kOEulXxPdvJp92OewqnkQEO4=";
18
19 postInstall = ''
20 cp -r templates $out/
21 '';
22
23 meta = with lib; {
24 description = "IMAP/SMTP autodiscover feature for Thunderbird, Apple Mail and Microsoft Outlook";
25 homepage = "https://github.com/L11R/go-autoconfig";
26 license = licenses.mit;
27 maintainers = with maintainers; [ onny ];
28 };
29}