summary refs log tree commit diff
path: root/pkgs/development/tools/haskell/vaultenv/default.nix
blob: 8c817e8eeef0fbc3eb0782c1ec8e4386b04978b8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ mkDerivation, async, base, bytestring, connection, containers
, directory, hpack, hspec, hspec-discover, hspec-expectations
, http-client, http-conduit, lens, lens-aeson, megaparsec, mtl
, optparse-applicative, parser-combinators, retry, lib, text
, unix, unordered-containers, utf8-string, fetchzip, dotenv
}:
mkDerivation rec {
  pname = "vaultenv";
  version = "0.13.1";

  src = fetchzip {
    url = "https://github.com/channable/vaultenv/archive/v${version}.tar.gz";
    sha256 = "0ycf5skxjns77sgbm8faq9ps9rs2hqznsbzrd51hdkpak56k42cp";
  };

  buildTools = [ hpack ];

  prePatch = ''
    substituteInPlace package.yaml \
        --replace -Werror ""
  '';

  isLibrary = false;
  isExecutable = true;
  executableHaskellDepends = [
    async base bytestring connection containers http-client
    http-conduit lens lens-aeson megaparsec mtl optparse-applicative
    parser-combinators retry text unix unordered-containers utf8-string
    dotenv
  ];
  testHaskellDepends = [
    async base bytestring connection containers directory hspec
    hspec-discover hspec-expectations http-client http-conduit lens
    lens-aeson megaparsec mtl optparse-applicative parser-combinators
    retry text unix unordered-containers utf8-string
  ];
  preConfigure = "hpack";
  homepage = "https://github.com/channable/vaultenv#readme";
  description = "Runs processes with secrets from HashiCorp Vault";
  license = lib.licenses.bsd3;
  maintainers = with lib.maintainers; [ lnl7 manveru ];
}