Skip to content

Commit

Permalink
gnupg: Rename parameter x11Support -> guiSupport
Browse files Browse the repository at this point in the history
Because it is really about GUI in general, not X11 (e.g. OS X).
  • Loading branch information
kirelagin committed Oct 28, 2016
1 parent 9ab271a commit 62d9edb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pkgs/tools/security/gnupg/20.nix
Expand Up @@ -3,13 +3,13 @@

# Each of the dependencies below are optional.
# Gnupg can be built without them at the cost of reduced functionality.
, pinentry ? null, x11Support ? true
, pinentry ? null, guiSupport ? true
, openldap ? null, bzip2 ? null, libusb ? null, curl ? null
}:

with stdenv.lib;

assert x11Support -> pinentry != null;
assert guiSupport -> pinentry != null;

stdenv.mkDerivation rec {
name = "gnupg-2.0.30";
Expand All @@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
patch gl/stdint_.h < ${./clang.patch}
'';

configureFlags = optional x11Support "--with-pinentry-pgm=${pinentry}/bin/pinentry";
configureFlags = optional guiSupport "--with-pinentry-pgm=${pinentry}/bin/pinentry";

postConfigure = "substituteAllInPlace tools/gpgkey2ssh.c";

Expand Down
6 changes: 3 additions & 3 deletions pkgs/tools/security/gnupg/21.nix
Expand Up @@ -3,14 +3,14 @@

# Each of the dependencies below are optional.
# Gnupg can be built without them at the cost of reduced functionality.
, pinentry ? null, x11Support ? true
, pinentry ? null, guiSupport ? true
, adns ? null, gnutls ? null, libusb ? null, openldap ? null
, readline ? null, zlib ? null, bzip2 ? null
}:

with stdenv.lib;

assert x11Support -> pinentry != null;
assert guiSupport -> pinentry != null;

stdenv.mkDerivation rec {
name = "gnupg-${version}";
Expand All @@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
sed -i 's,"libpcsclite\.so[^"]*","${pcsclite}/lib/libpcsclite.so",g' scd/scdaemon.c
''; #" fix Emacs syntax highlighting :-(

configureFlags = optional x11Support "--with-pinentry-pgm=${pinentry}/bin/pinentry";
configureFlags = optional guiSupport "--with-pinentry-pgm=${pinentry}/bin/pinentry";

meta = with stdenv.lib; {
homepage = http://gnupg.org;
Expand Down

0 comments on commit 62d9edb

Please sign in to comment.