1
1
mirror of https://github.com/ryantm/agenix.git synced 2024-10-26 14:37:50 +03:00
This commit is contained in:
Zeke Dou 2024-05-13 19:53:52 +02:00 committed by GitHub
commit 8f90a3ecd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -3,6 +3,7 @@
stdenv, stdenv,
age, age,
jq, jq,
gnused,
nix, nix,
mktemp, mktemp,
diffutils, diffutils,
@ -18,6 +19,7 @@ in
src = substituteAll { src = substituteAll {
inherit ageBin version; inherit ageBin version;
jqBin = "${jq}/bin/jq"; jqBin = "${jq}/bin/jq";
sedBin = "${gnused}/bin/sed";
nixInstantiate = "${nix}/bin/nix-instantiate"; nixInstantiate = "${nix}/bin/nix-instantiate";
mktempBin = "${mktemp}/bin/mktemp"; mktempBin = "${mktemp}/bin/mktemp";
diffBin = "${diffutils}/bin/diff"; diffBin = "${diffutils}/bin/diff";

View File

@ -115,7 +115,7 @@ function cleanup {
trap "cleanup" 0 2 3 15 trap "cleanup" 0 2 3 15
function keys { function keys {
(@nixInstantiate@ --json --eval --strict -E "(let rules = import $RULES; in rules.\"$1\".publicKeys)" | @jqBin@ -r .[]) || exit 1 (@nixInstantiate@ --json --eval --strict -E "(let rules = import $RULES; in rules.\"$1\".publicKeys)" | @jqBin@ -r .[] | @sedBin@ '/^$/d') || exit 1
} }
function decrypt { function decrypt {