1{ mkDerivation
2, async
3, base
4, bytestring
5, connection
6, containers
7, directory
8, hpack
9, hspec
10, hspec-discover
11, hspec-expectations
12, http-client
13, http-conduit
14, lens
15, lens-aeson
16, megaparsec
17, mtl
18, optparse-applicative
19, parser-combinators
20, retry
21, lib
22, text
23, unix
24, unordered-containers
25, utf8-string
26, fetchFromGitHub
27, dotenv
28}:
29mkDerivation rec {
30 pname = "vaultenv";
31 version = "0.14.0";
32
33 src = fetchFromGitHub {
34 owner = "channable";
35 repo = "vaultenv";
36 rev = "v${version}";
37 sha256 = "sha256-sH4iaKQXgwI/WISXzMR7xqh9Dyx61U/gjYn7exgUetI=";
38 };
39
40 buildTools = [ hpack ];
41
42 prePatch = ''
43 substituteInPlace package.yaml \
44 --replace -Werror ""
45 '';
46
47 isLibrary = false;
48 isExecutable = true;
49 executableHaskellDepends = [
50 async
51 base
52 bytestring
53 connection
54 containers
55 http-client
56 http-conduit
57 lens
58 lens-aeson
59 megaparsec
60 mtl
61 optparse-applicative
62 parser-combinators
63 retry
64 text
65 unix
66 unordered-containers
67 utf8-string
68 dotenv
69 ];
70 testHaskellDepends = [
71 async
72 base
73 bytestring
74 connection
75 containers
76 directory
77 hspec
78 hspec-discover
79 hspec-expectations
80 http-client
81 http-conduit
82 lens
83 lens-aeson
84 megaparsec
85 mtl
86 optparse-applicative
87 parser-combinators
88 retry
89 text
90 unix
91 unordered-containers
92 utf8-string
93 ];
94 preConfigure = "hpack";
95 homepage = "https://github.com/channable/vaultenv#readme";
96 description = "Runs processes with secrets from HashiCorp Vault";
97 license = lib.licenses.bsd3;
98 maintainers = with lib.maintainers; [ lnl7 manveru ];
99}