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
|
2023-01-11 07:51:40 +00:00
|
|
|
, quickcheck-instances
|
2021-12-06 16:07:01 +00:00
|
|
|
, text
|
|
|
|
, unix
|
|
|
|
, unordered-containers
|
|
|
|
, utf8-string
|
|
|
|
, fetchFromGitHub
|
|
|
|
, dotenv
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "vaultenv";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.16.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}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-EPu4unzXIg8naFUEZwbJ2VJXD/TeCiKzPHCXnRkdyBE=";
|
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
|
2023-01-11 07:51:40 +00:00
|
|
|
quickcheck-instances
|
2021-12-06 16:07:01 +00:00
|
|
|
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 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|