Skip to content

Instantly share code, notes, and snippets.

@benley
Created June 15, 2016 21:52
Show Gist options
  • Save benley/204ae36baf2a9ce4ef400657c3f55cd0 to your computer and use it in GitHub Desktop.
Save benley/204ae36baf2a9ce4ef400657c3f55cd0 to your computer and use it in GitHub Desktop.
{ lib, bundlerEnv, stdenv }:
let
name = "hiera-eyaml-2.1.0";
env = bundlerEnv {
inherit name;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
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;
};
};
in stdenv.mkDerivation {
inherit name;
buildCommand = ''
mkdir -p $out/bin
ln -s ${env}/bin/eyaml $out/bin/eyaml
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment