git.iko.soy/typeable/nixpkgs
on master help sign in
gpgme: Use fixed path for GnuPG binaries
39a07caaszlig
pkgs/development/libraries/gpgme/default.nix+6−5
@@ -5,10 +5,8 @@ assert useGnupg1 -> gnupg1 != null;
5assert !useGnupg1 -> gnupg != null;
5assert !useGnupg1 -> gnupg != null;
6
6
7let
7let
8− gpgPath = if useGnupg1 then
8+ gpgStorePath = if useGnupg1 then gnupg1 else gnupg;
9− "${gnupg1}/bin/gpg"
9+ gpgProgram = if useGnupg1 then "gpg" else "gpg2";
10− else
11− "${gnupg}/bin/gpg2";
12in
10in
13stdenv.mkDerivation rec {
11stdenv.mkDerivation rec {
14 name = "gpgme-1.6.0";
12 name = "gpgme-1.6.0";
@@ -22,7 +20,10 @@ stdenv.mkDerivation rec {
22
20
23 nativeBuildInputs = [ pkgconfig gnupg ];
21 nativeBuildInputs = [ pkgconfig gnupg ];
24
22
25− configureFlags = "--with-gpg=${gpgPath}";
23+ configureFlags = [
24+ "--with-gpg=${gpgStorePath}/bin/${gpgProgram}"
25+ "--enable-fixed-path=${gpgStorePath}/bin"
26+ ];
26
27
27 meta = {
28 meta = {
28 homepage = "http://www.gnupg.org/related_software/gpgme";
29 homepage = "http://www.gnupg.org/related_software/gpgme";