]> git.scottworley.com Git - auto-upgrade-with-pinch/blame - pkgs/homeless-gpg.nix
pinch: 3.0.13 → 3.0.15
[auto-upgrade-with-pinch] / pkgs / homeless-gpg.nix
CommitLineData
edaaa0c0
SW
1{ coreutils, gnupg, writeShellScript }:
2writeShellScript "homeless-gpg" ''
3 set -eo pipefail
4
5 export GNUPGHOME=$(${coreutils}/bin/mktemp -d)
6 trap '${coreutils}/bin/rm -r "$GNUPGHOME"' EXIT
7 ${gnupg}/bin/gpg --no-default-keyring "$@"
8''