summary refs log tree commit diff
path: root/pkgs/tools/system/hiera-eyaml/default.nix
diff options
context:
space:
mode:
authorBenjamin Staffin <benley@gmail.com>2016-06-15 17:59:01 -0400
committerBenjamin Staffin <benley@gmail.com>2016-06-15 20:19:06 -0400
commit68689f4d8e1623578ae6ec4283c8914df2985b05 (patch)
treedfab243a4ac5dae85e276f96a9442007392c535d /pkgs/tools/system/hiera-eyaml/default.nix
parenta689df205a0f61aaefb666f7ffeb6a90d4d6af6f (diff)
downloadnixpkgs-68689f4d8e1623578ae6ec4283c8914df2985b05.tar
nixpkgs-68689f4d8e1623578ae6ec4283c8914df2985b05.tar.gz
nixpkgs-68689f4d8e1623578ae6ec4283c8914df2985b05.tar.bz2
nixpkgs-68689f4d8e1623578ae6ec4283c8914df2985b05.tar.lz
nixpkgs-68689f4d8e1623578ae6ec4283c8914df2985b05.tar.xz
nixpkgs-68689f4d8e1623578ae6ec4283c8914df2985b05.tar.zst
nixpkgs-68689f4d8e1623578ae6ec4283c8914df2985b05.zip
hiera-eyaml: init at 2.1.0
Diffstat (limited to 'pkgs/tools/system/hiera-eyaml/default.nix')
-rw-r--r--pkgs/tools/system/hiera-eyaml/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/system/hiera-eyaml/default.nix b/pkgs/tools/system/hiera-eyaml/default.nix
new file mode 100644
index 00000000000..615a66f8655
--- /dev/null
+++ b/pkgs/tools/system/hiera-eyaml/default.nix
@@ -0,0 +1,28 @@
+{ lib, bundlerEnv, stdenv }:
+
+let
+  name = "hiera-eyaml-${env.gems.hiera-eyaml.version}";
+
+  env = bundlerEnv {
+    inherit name;
+    gemfile = ./Gemfile;
+    lockfile = ./Gemfile.lock;
+    gemset = ./gemset.nix;
+  };
+
+in stdenv.mkDerivation {
+  inherit name;
+
+  buildCommand = ''
+    mkdir -p $out/bin
+    ln -s ${env}/bin/eyaml $out/bin/eyaml
+  '';
+
+  meta = with lib; {
+    description = "Per-value asymmetric encryption of sensitive data for Hiera";
+    homepage = https://github.com/TomPoulton/hiera-eyaml;
+    license = licenses.mit;
+    maintainers = [ maintainers.benley ];
+    platforms = platforms.unix;
+  };
+}