homelessGPG = super.writeShellScript "homeless-gpg" ''
export GNUPGHOME=$(mktemp -d)
trap 'rm -r "$GNUPGHOME"' EXIT
${self.gnupg}/bin/gpg "$@"
'';
homelessGPG = super.writeShellScript "homeless-gpg" ''
export GNUPGHOME=$(mktemp -d)
trap 'rm -r "$GNUPGHOME"' EXIT
${self.gnupg}/bin/gpg "$@"
'';
- keyring = super.runCommand "keyedkeyring.gpg" {} ''
- ${homelessGPG} --no-default-keyring --keyring=$out --import ${key}
+ keyring = super.runCommand "keyedkeyring.gpg" { } ''
+ ${homelessGPG} --no-default-keyring --keyring=$out --import ${keyfile}
- keyid = super.runCommand "keyid" {} ''
- ${homelessGPG} --with-colons --show-keys ${key} | awk -F: '{ print $5; exit }' > $out
+ keyids = super.runCommand "keyids" { } ''
+ ${homelessGPG} --no-default-keyring --with-colons --show-keys ${keyfile} |
+ ${self.gawk}/bin/awk -F: '$1 == "pub" { print $5 }' > $out