+ trap 'rm -r "$GNUPGHOME"' EXIT
+ ${self.gnupg}/bin/gpg "$@"
+ '';
+ keyring = super.runCommand "keyedkeyring.gpg" {} ''
+ ${homelessGPG} --no-default-keyring --keyring=$out --import ${keys}
+ '';
+ keyids = super.runCommand "keyids" {} ''
+ ${homelessGPG} --no-default-keyring --with-colons --show-keys ${keys} |
+ ${self.gawk}/bin/awk -F: 'prev == "pub" && $1 == "fpr" { print $10 } { prev = $1 }' > $out
+ '';
+ keyedGPG = super.writeShellScript "keyed-gpg" ''
+ trusted_key_args=()
+ while read keyid;do
+ trusted_key_args+=( --trusted-key "$keyid" )
+ done < ${keyids}
+ ${homelessGPG} --no-default-keyring --keyring=${keyring} "''${trusted_key_args[@]}" "$@"