3 pkgs.runCommand "gpg-keyring" { nativeBuildInputs = [ pkgs.gnupg ]; } ''
7 %echo Generating a basic OpenPGP key
12 Name-Email: bob@foo.bar
14 # Do a commit here, so that we can later print "done"
18 gpg --batch --generate-key foo
19 rm $out/S.gpg-agent $out/S.gpg-agent.*
20 gpg --export bob@foo.bar -a > $out/pubkey.gpg