mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +03:00
gpg/pth: fixing the pth building on arm
I could built pth with the fix commented in: http://forums.gentoo.org/viewtopic-t-904280-start-0.html And I remove the 'pth.supported' structure I had built.
This commit is contained in:
parent
086e1e84fa
commit
d2d761b692
@ -1,5 +1,15 @@
|
||||
{ stdenv, fetchurl, libgpgerror, gnupg, pkgconfig, glib, pth, libassuan }:
|
||||
{ stdenv, fetchurl, libgpgerror, gnupg, pkgconfig, glib, pth, libassuan
|
||||
, useGnupg1 ? false, gnupg1 ? null }:
|
||||
|
||||
assert useGnupg1 -> gnupg1 != null;
|
||||
assert !useGnupg1 -> gnupg != null;
|
||||
|
||||
let
|
||||
gpgPath = if useGnupg1 then
|
||||
"${gnupg1}/bin/gpg"
|
||||
else
|
||||
"${gnupg}/bin/gpg2";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gpgme-1.3.1";
|
||||
|
||||
@ -8,10 +18,9 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "1m7l7nicn6gd952cgspv9xr8whqivbg33nbg8kbpj3dffnl2gvqm";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ libgpgerror glib libassuan ]
|
||||
++ stdenv.lib.optional pth.supported pth;
|
||||
propagatedBuildInputs = [ libgpgerror glib libassuan pth ];
|
||||
|
||||
buildNativeInputs = [ pkgconfig ];
|
||||
|
||||
configureFlags = "--with-gpg=${gnupg}/bin/gpg2";
|
||||
configureFlags = "--with-gpg=${gpgPath}";
|
||||
}
|
||||
|
@ -8,8 +8,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "06xckkvxxlx7cj77803m8x58gxksap4k8yhspc5cqsy7fhinimds";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ libgpgerror ]
|
||||
++ stdenv.lib.optional pth.supported pth;
|
||||
propagatedBuildInputs = [ libgpgerror pth ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
|
@ -8,9 +8,9 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "0ckjqw5kz5m30srqi87idj7xhpw6bpki43mj07bazjm2qmh3cdbj";
|
||||
};
|
||||
|
||||
passthru = {
|
||||
supported = ! stdenv.isArm;
|
||||
};
|
||||
preConfigure = stdenv.lib.optionalString stdenv.isArm ''
|
||||
configureFlagsArray=("CFLAGS=-DJB_SP=8 -DJB_PC=9")
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "The GNU Portable Threads library";
|
||||
|
@ -20,8 +20,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "08n636sfffs5qvg9ppiprvsh00q0dmdw425psg3m3nssja53m8pg";
|
||||
};
|
||||
|
||||
buildInputs = [ readline zlib libgpgerror libgcrypt libassuan libksba ]
|
||||
++ stdenv.lib.optional pth.supported pth
|
||||
buildInputs = [ readline zlib libgpgerror libgcrypt libassuan libksba pth ]
|
||||
++ stdenv.lib.optional useLdap openldap
|
||||
++ stdenv.lib.optional useBzip2 bzip2
|
||||
++ stdenv.lib.optional useUsb libusb
|
||||
|
@ -3839,7 +3839,9 @@ let
|
||||
gnutls_without_guile = gnutls.override { guileBindings = false; };
|
||||
gnutls2_without_guile = gnutls2.override { guileBindings = false; };
|
||||
|
||||
gpgme = callPackage ../development/libraries/gpgme { };
|
||||
gpgme = callPackage ../development/libraries/gpgme {
|
||||
gnupg1 = gnupg1orig;
|
||||
};
|
||||
|
||||
grantlee = callPackage ../development/libraries/grantlee { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user