1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-05-02 12:27:02 +00:00

Apply recent changes from gnupg/default.nix to gnupg/git.nix

gnupg/git.nix doesn't build, but it didn't build before either.
This commit is contained in:
Russell O'Connor 2014-09-16 18:49:16 -04:00
parent 1274724c62
commit df7444ec65

View file

@ -1,17 +1,8 @@
# Remember to install Pinentry and
# 'echo "pinentry-program `which pinentry-gtk-2`" >> ~/.gnupg/gpg-agent.conf'.
{ fetchgit, stdenv, readline, zlib, libgpgerror, npth, libgcrypt, libassuan { fetchgit, stdenv, readline, zlib, libgpgerror, npth, libgcrypt, libassuan
, libksba, coreutils, autoconf, automake, transfig, ghostscript, texinfo , libksba, coreutils, autoconf, automake, transfig, ghostscript, texinfo
, useLdap ? true, openldap ? null, useBzip2 ? true, bzip2 ? null, useUsb ? true , pinentry ? null, openldap ? null, bzip2 ? null, libusb ? null, curl ? null
, libusb ? null, useCurl ? true, curl ? null
}: }:
assert useLdap -> (openldap != null);
assert useBzip2 -> (bzip2 != null);
assert useUsb -> (libusb != null);
assert useCurl -> (curl != null);
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gnupg-2.1pre-git20120407"; name = "gnupg-2.1pre-git20120407";
@ -22,18 +13,17 @@ stdenv.mkDerivation rec {
}; };
buildInputs = [ readline zlib libgpgerror npth libgcrypt libassuan libksba buildInputs = [ readline zlib libgpgerror npth libgcrypt libassuan libksba
autoconf automake transfig ghostscript texinfo ] openldap bzip2 libusb curl
++ stdenv.lib.optional useLdap openldap autoconf automake transfig ghostscript texinfo ];
++ stdenv.lib.optional useBzip2 bzip2
++ stdenv.lib.optional useUsb libusb
++ stdenv.lib.optional useCurl curl;
patchPhase = '' patchPhase = ''
find tests -type f | xargs sed -e 's@/bin/pwd@${coreutils}&@g' -i find tests -type f | xargs sed -e 's@/bin/pwd@${coreutils}&@g' -i
''; '';
preConfigure = "autoreconf -v"; preConfigure = "autoreconf -v";
configureFlags = "--enable-maintainer-mode"; configureFlags = "--enable-maintainer-mode" +
(if pinentry != null then " --with-pinentry-pgm=${pinentry}/bin/pinentry"
else "");
meta = { meta = {
description = "GNU Privacy Guard (GnuPG), GNU Project's implementation of the OpenPGP standard"; description = "GNU Privacy Guard (GnuPG), GNU Project's implementation of the OpenPGP standard";