3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/gpgme/default.nix

27 lines
641 B
Nix
Raw Normal View History

{ 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 {
2013-12-04 06:35:07 +00:00
name = "gpgme-1.4.3";
src = fetchurl {
url = "ftp://ftp.gnupg.org/gcrypt/gpgme/${name}.tar.bz2";
2013-12-04 06:35:07 +00:00
sha256 = "15h429h6pd67iiv580bjmwbkadpxsdppw0xrqpcm4dvm24jc271d";
};
propagatedBuildInputs = [ libgpgerror glib libassuan pth ];
nativeBuildInputs = [ pkgconfig gnupg ];
configureFlags = "--with-gpg=${gpgPath}";
}