1 # Following the instructions at https://tribut.de/blog/git-commit-signatures-trusted-keys
6 keyring = super.runCommand "keyedkeyring.gpg" {} ''
7 export GNUPGHOME=$(mktemp -d)
8 ${self.gnupg}/bin/gpg --no-default-keyring --keyring=$out --import ${key}
10 keyedgpg = super.symlinkJoin {
12 buildInputs = [ super.makeWrapper ];
13 paths = [ self.gnupg ];
15 wrapProgram "$out/bin/gpg" \
16 --add-flags '--no-default-keyring --keyring=${keyring}'
19 in super.symlinkJoin {
22 buildInputs = [ super.makeWrapper ];
24 wrapProgram "$out/bin/git" \
25 --add-flags '-c gpg.program=${keyedgpg}/bin/gpg'