2020-04-24 23:36:52 +00:00
|
|
|
{ mkDerivation, async, base, bytestring, connection, containers
|
|
|
|
, directory, hpack, hspec, hspec-discover, hspec-expectations
|
|
|
|
, http-client, http-conduit, lens, lens-aeson, megaparsec, mtl
|
2021-02-05 17:12:51 +00:00
|
|
|
, optparse-applicative, parser-combinators, retry, lib, text
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ lnl7 manveru ];
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|