diff --git a/pkgs/development/libraries/gpgme/default.nix b/pkgs/development/libraries/gpgme/default.nix index 3ca0e974ff1..42a592bf2dc 100644 --- a/pkgs/development/libraries/gpgme/default.nix +++ b/pkgs/development/libraries/gpgme/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, libgpgerror, gnupg, pkgconfig, glib, pth}: +{stdenv, fetchurl, libgpgerror, gnupg, pkgconfig, glib, pth, libassuan}: stdenv.mkDerivation rec { name = "gpgme-1.3.0"; @@ -6,5 +6,6 @@ stdenv.mkDerivation rec { url = "ftp://ftp.gnupg.org/gcrypt/gpgme/${name}.tar.bz2"; sha256 = "18g6wgiacnbj437yfsczbjxaf041ljia48dnv2qgcqb0sky41q3l"; }; - buildInputs = [libgpgerror gnupg pkgconfig glib pth]; + buildInputs = [libgpgerror gnupg pkgconfig glib pth libassuan]; + configureFlags = "--with-gpg=${gnupg}/bin/gpg2"; } diff --git a/pkgs/tools/security/gnupg/default.nix b/pkgs/tools/security/gnupg/default.nix index 32632358c25..1da3e4e51a2 100644 --- a/pkgs/tools/security/gnupg/default.nix +++ b/pkgs/tools/security/gnupg/default.nix @@ -31,11 +31,6 @@ stdenv.mkDerivation rec { checkPhase="GNUPGHOME=`pwd` ./agent/gpg-agent --daemon make check"; - postInstall = '' - ln -s gpg2 $out/bin/gpg - ln -s gpgv2 $out/bin/gpgv - ''; - doCheck = true; meta = { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d3f50d6b5f8..5c32d40b449 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4034,7 +4034,7 @@ let }; gpgme = import ../development/libraries/gpgme { - inherit fetchurl stdenv libgpgerror pkgconfig pth gnupg glib; + inherit fetchurl stdenv libgpgerror pkgconfig pth gnupg glib libassuan; }; gsasl = import ../development/libraries/gsasl {