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