2021-12-06 16:07:01 +00: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
|
|
|
|
, lib
|
|
|
|
, text
|
|
|
|
, unix
|
|
|
|
, unordered-containers
|
|
|
|
, utf8-string
|
|
|
|
, fetchFromGitHub
|
|
|
|
, dotenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "vaultenv";
|
2022-03-10 19:12:11 +00:00
|
|
|
version = "0.14.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "channable";
|
|
|
|
repo = "vaultenv";
|
|
|
|
rev = "v${version}";
|
2022-03-10 19:12:11 +00:00
|
|
|
sha256 = "sha256-sH4iaKQXgwI/WISXzMR7xqh9Dyx61U/gjYn7exgUetI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildTools = [ hpack ];
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace package.yaml \
|
|
|
|
--replace -Werror ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
isLibrary = false;
|
|
|
|
isExecutable = true;
|
|
|
|
executableHaskellDepends = [
|
2021-12-06 16:07:01 +00: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
|
2020-04-24 23:36:52 +00:00
|
|
|
dotenv
|
|
|
|
];
|
|
|
|
testHaskellDepends = [
|
2021-12-06 16:07:01 +00:00
|
|
|
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
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
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 ];
|
2022-12-28 21:21:41 +00:00
|
|
|
|
|
|
|
# Does not compile on ghc92
|
|
|
|
hydraPlatforms = lib.platforms.none;
|
|
|
|
broken = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|