1{ mkDerivation
2, fetchFromSourcehut
3, aeson
4, base
5, bytestring
6, containers
7, directory
8, hsyslog
9, http-conduit
10, lib
11, network-uri
12, optparse-applicative
13, pretty-simple
14, process
15, template-haskell
16, text
17, time
18, twain
19, utf8-string
20, warp
21, yaml
22}:
23mkDerivation rec {
24 pname = "mailctl";
25 version = "0.8.8";
26
27 src = fetchFromSourcehut {
28 owner = "~petrus";
29 repo = "mailctl";
30 rev = version;
31 hash = "sha256-aFt6y2DzreROLcOLU8ynnSSVQW840T5wFqSRdSODQX4=";
32 };
33
34 isLibrary = true;
35 isExecutable = true;
36
37 libraryHaskellDepends = [
38 aeson
39 base
40 bytestring
41 containers
42 directory
43 hsyslog
44 http-conduit
45 network-uri
46 optparse-applicative
47 pretty-simple
48 process
49 template-haskell
50 text
51 time
52 twain
53 utf8-string
54 warp
55 yaml
56 ];
57
58 executableHaskellDepends = [
59 aeson
60 base
61 bytestring
62 containers
63 directory
64 hsyslog
65 http-conduit
66 network-uri
67 optparse-applicative
68 pretty-simple
69 process
70 template-haskell
71 text
72 time
73 twain
74 utf8-string
75 warp
76 yaml
77 ];
78
79 description = "OAuth2 tool for mail clients";
80 homepage = "https://sr.ht/~petrus/mailctl/";
81 changelog = "https://git.sr.ht/~petrus/mailctl/refs/${version}";
82 license = lib.licenses.bsd3;
83 maintainers = with lib.maintainers; [ aidalgol ];
84 mainProgram = "mailctl";
85}