depot/third_party/nixpkgs/pkgs/development/tools/haskell/vaultenv/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

42 lines
1.5 KiB
Nix

{ 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, 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 = stdenv.lib.licenses.bsd3;
maintainers = with stdenv.lib.maintainers; [ lnl7 manveru ];
}