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