diff options
-rw-r--r-- | pkgs/tools/system/hiera-eyaml/Gemfile | 3 | ||||
-rw-r--r-- | pkgs/tools/system/hiera-eyaml/Gemfile.lock | 17 | ||||
-rw-r--r-- | pkgs/tools/system/hiera-eyaml/default.nix | 28 | ||||
-rw-r--r-- | pkgs/tools/system/hiera-eyaml/gemset.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
5 files changed, 76 insertions, 0 deletions
diff --git a/pkgs/tools/system/hiera-eyaml/Gemfile b/pkgs/tools/system/hiera-eyaml/Gemfile new file mode 100644 index 000000000000..18c7cde2a086 --- /dev/null +++ b/pkgs/tools/system/hiera-eyaml/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem 'hiera-eyaml', '2.1.0' diff --git a/pkgs/tools/system/hiera-eyaml/Gemfile.lock b/pkgs/tools/system/hiera-eyaml/Gemfile.lock new file mode 100644 index 000000000000..a6d1c1f872e9 --- /dev/null +++ b/pkgs/tools/system/hiera-eyaml/Gemfile.lock @@ -0,0 +1,17 @@ +GEM + remote: https://rubygems.org/ + specs: + hiera-eyaml (2.1.0) + highline (~> 1.6.19) + trollop (~> 2.0) + highline (1.6.21) + trollop (2.1.2) + +PLATFORMS + ruby + +DEPENDENCIES + hiera-eyaml (= 2.1.0) + +BUNDLED WITH + 1.11.2 diff --git a/pkgs/tools/system/hiera-eyaml/default.nix b/pkgs/tools/system/hiera-eyaml/default.nix new file mode 100644 index 000000000000..615a66f86551 --- /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; + }; +} diff --git a/pkgs/tools/system/hiera-eyaml/gemset.nix b/pkgs/tools/system/hiera-eyaml/gemset.nix new file mode 100644 index 000000000000..ab6d5307ebb8 --- /dev/null +++ b/pkgs/tools/system/hiera-eyaml/gemset.nix @@ -0,0 +1,26 @@ +{ + hiera-eyaml = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1h25pfv89macjf3sjdrx7slhlq1af4zybai42ci3gj02b6hli4a6"; + type = "gem"; + }; + version = "2.1.0"; + }; + highline = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "06bml1fjsnrhd956wqq5k3w8cyd09rv1vixdpa3zzkl6xs72jdn1"; + type = "gem"; + }; + version = "1.6.21"; + }; + trollop = { + source = { + remotes = ["https://rubygems.org"]; + sha256 = "0415y63df86sqj43c0l82and65ia5h64if7n0znkbrmi6y0jwhl8"; + type = "gem"; + }; + version = "2.1.2"; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8148ccc178a2..81967507f8be 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1933,6 +1933,8 @@ in hevea = callPackage ../tools/typesetting/hevea { }; + hiera-eyaml = callPackage ../tools/system/hiera-eyaml { }; + hfsprogs = callPackage ../tools/filesystems/hfsprogs { }; highlight = callPackage ../tools/text/highlight { |