2018-09-12 04:40:04 +01:00
|
|
|
{ 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, stdenv, text
|
|
|
|
, unix, unordered-containers, utf8-string, fetchzip
|
2017-09-07 20:42:06 +01:00
|
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "vaultenv";
|
2018-09-12 04:40:04 +01:00
|
|
|
version = "0.8.0";
|
2017-09-07 20:42:06 +01:00
|
|
|
|
2017-12-30 15:53:51 +00:00
|
|
|
src = fetchzip {
|
2017-09-07 20:42:06 +01:00
|
|
|
url = "https://github.com/channable/vaultenv/archive/v${version}.tar.gz";
|
2018-09-12 04:40:04 +01:00
|
|
|
sha256 = "04hrwyy7gsybdwljrks4ym3pshqk1i43f8wpirjx7b0dfjgsd2l5";
|
2017-09-07 20:42:06 +01:00
|
|
|
};
|
|
|
|
|
2017-12-30 15:53:51 +00:00
|
|
|
buildTools = [ hpack ];
|
|
|
|
|
2017-09-07 20:42:06 +01:00
|
|
|
isLibrary = false;
|
|
|
|
isExecutable = true;
|
|
|
|
executableHaskellDepends = [
|
2018-09-12 04:40:04 +01:00
|
|
|
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
|
|
|
|
];
|
|
|
|
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
|
2017-09-07 20:42:06 +01:00
|
|
|
];
|
2018-09-12 04:40:04 +01:00
|
|
|
preConfigure = "hpack";
|
|
|
|
homepage = "https://github.com/channable/vaultenv#readme";
|
2017-09-07 20:42:06 +01:00
|
|
|
description = "Runs processes with secrets from HashiCorp Vault";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ lnl7 ];
|
|
|
|
}
|