summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2017-09-21 21:13:53 +0200
committerGitHub <noreply@github.com>2017-09-21 21:13:53 +0200
commita68eea3cb0d946d210b5428616dd8e835fd787a9 (patch)
tree4d55a21182afe2a314c67e0cda06143b91944c28 /pkgs
parentbafb9c4d50d08a373f83b15be6fa0ad1fe2b44cf (diff)
parentc3f6b53bb6ddadabcf599de1e3a48a158136ddb6 (diff)
downloadnixlib-a68eea3cb0d946d210b5428616dd8e835fd787a9.tar
nixlib-a68eea3cb0d946d210b5428616dd8e835fd787a9.tar.gz
nixlib-a68eea3cb0d946d210b5428616dd8e835fd787a9.tar.bz2
nixlib-a68eea3cb0d946d210b5428616dd8e835fd787a9.tar.lz
nixlib-a68eea3cb0d946d210b5428616dd8e835fd787a9.tar.xz
nixlib-a68eea3cb0d946d210b5428616dd8e835fd787a9.tar.zst
nixlib-a68eea3cb0d946d210b5428616dd8e835fd787a9.zip
Merge pull request #29089 from LnL7/vaultenv-0.5.0
vaultenv: init at 0.5.0
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix3
-rw-r--r--pkgs/development/tools/haskell/vaultenv/default.nix26
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 85a5f961485c..d983934e83a5 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -720,6 +720,9 @@ self: super: {
   # It makes no sense to have intero-nix-shim in Hackage, so we publish it here only.
   intero-nix-shim = self.callPackage ../tools/haskell/intero-nix-shim {};
 
+  # vaultenv is not available from Hackage.
+  vaultenv = self.callPackage ../tools/haskell/vaultenv { };
+
   # https://github.com/Philonous/hs-stun/pull/1
   # Remove if a version > 0.1.0.1 ever gets released.
   stunclient = overrideCabal super.stunclient (drv: {
diff --git a/pkgs/development/tools/haskell/vaultenv/default.nix b/pkgs/development/tools/haskell/vaultenv/default.nix
new file mode 100644
index 000000000000..9b5a19700ff6
--- /dev/null
+++ b/pkgs/development/tools/haskell/vaultenv/default.nix
@@ -0,0 +1,26 @@
+{ mkDerivation, fetchurl, async, base, bytestring, http-conduit, lens
+, lens-aeson, optparse-applicative, retry, stdenv, text, unix
+, unordered-containers, utf8-string
+}:
+
+mkDerivation rec {
+  pname = "vaultenv";
+  version = "0.5.0";
+
+  src = fetchurl {
+    url = "https://github.com/channable/vaultenv/archive/v${version}.tar.gz";
+    sha256 = "0hdcxq88cf3ygnikkppyg3fcf7xmwm9zif7274j3n34p9vd8xci3";
+  };
+
+  isLibrary = false;
+  isExecutable = true;
+  executableHaskellDepends = [
+    async base bytestring http-conduit lens lens-aeson
+    optparse-applicative retry text unix unordered-containers
+    utf8-string
+  ];
+  homepage = "https://github.com/channable/vaultenv";
+  description = "Runs processes with secrets from HashiCorp Vault";
+  license = stdenv.lib.licenses.bsd3;
+  maintainers = with stdenv.lib.maintainers; [ lnl7 ];
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 395fb83cfe78..12a94c79b363 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -19158,6 +19158,8 @@ with pkgs;
 
   vault = callPackage ../tools/security/vault { };
 
+  vaultenv = haskellPackages.vaultenv;
+
   vbam = callPackage ../misc/emulators/vbam {
     ffmpeg = ffmpeg_2;
   };