Files
nixpkgs/pkgs/development/tools/haskell/vaultenv/default.nix
T
sternenseemann 7c76fbf6af haskellPackages.vaultenv: run hpack in prePatch
This matches cabal2nix generated expressions. We assume that the cabal
file exists after the user supplied prePatch.
2025-09-30 16:02:44 +02:00

94 lines
1.6 KiB
Nix

{
mkDerivation,
HsOpenSSL,
QuickCheck,
aeson,
async,
base,
bytestring,
containers,
crypton-connection,
directory,
hpack,
hspec,
hspec-discover,
hspec-expectations,
http-client,
http-client-openssl,
http-conduit,
lib,
megaparsec,
network-uri,
optparse-applicative,
parser-combinators,
quickcheck-instances,
retry,
text,
unix,
unordered-containers,
utf8-string,
dotenv,
fetchFromGitHub,
}:
mkDerivation rec {
pname = "vaultenv";
version = "0.19.0";
src = fetchFromGitHub {
owner = "channable";
repo = "vaultenv";
rev = "v${version}";
hash = "sha256-x3c9TKrCF3tsEFofYAXfK6DWdirEUxWWTttNqU/sJSc=";
};
buildTools = [ hpack ];
prePatch = ''
substituteInPlace package.yaml \
--replace -Werror ""
hpack
'';
isLibrary = false;
isExecutable = true;
executableHaskellDepends = [
HsOpenSSL
aeson
async
base
bytestring
containers
crypton-connection
directory
dotenv
http-client
http-client-openssl
http-conduit
megaparsec
network-uri
optparse-applicative
optparse-applicative
parser-combinators
retry
text
unix
unordered-containers
utf8-string
];
testHaskellDepends = executableHaskellDepends ++ [
QuickCheck
directory
hspec
hspec-discover
hspec-expectations
quickcheck-instances
];
homepage = "https://github.com/channable/vaultenv#readme";
description = "Runs processes with secrets from HashiCorp Vault";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
lnl7
manveru
];
}