From 5dcf5d6d050ae1f155573631aa0305f34284118b Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Sun, 10 Sep 2017 09:10:24 +0000 Subject: [PATCH] gnupg: add gnupg2 alias/symlink for 2.2. Otherwise signing commits with git break. (cherry picked from commit c651a0ccbf5b17739390b56f91b656a7b920f643) --- pkgs/tools/security/gnupg/22.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/security/gnupg/22.nix b/pkgs/tools/security/gnupg/22.nix index 3cabf9e1e41b..7080cda57f41 100644 --- a/pkgs/tools/security/gnupg/22.nix +++ b/pkgs/tools/security/gnupg/22.nix @@ -45,6 +45,9 @@ stdenv.mkDerivation rec { substitute $f $out/lib/systemd/user/$(basename $f) \ --replace /usr/bin $out/bin done + + # add gpg2 symlink to make sure git does not break when signing commits + ln -s $out/bin/gpg $out/bin/gpg2 ''; meta = with stdenv.lib; {