3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/top-level
aszlig d1a2853933
pinentry: Fix .override for pinentry_*
When you evaluate nixos/tests/simple.nix, you'll run into an infinite
recursion since 41b140cb25.

The reason is that udisks2 now pulls in gnupg because it now depends on
libblockdev, which in turn depends on volume_key and that depends on
gnupg.

Nevertheless, it's not the real reason, because this only means, that
since gnupg is now pulled into the closure of a basic nixos
configuration the real problem becomes visible:

In nixos/modules/config/no-x-libs.nix there is an overlay which does
something like this:

  nixpkgs.overlays = singleton (const (super: {
    pinentry = super.pinentry_ncurses;
  }));

Now since pinentry_ncurses is already using pinentry.override we get an
infinite recursion because now the pinentry attribute refers to
pinentry_ncurses, which by itself is again referring to pinentry.

This is solved by using the self.pinentry.override instead, so that the
override used by pinentry_ncurses doesn't use the attribute from the
overlay.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @ttuegel
Signed-off-by: aszlig <aszlig@nix.build>
2018-06-11 20:58:58 +02:00
..
aliases.nix adobe_flex_sdk: 4.0.0.14159 -> apache-flex-sdk: 4.16.1 (#41257) 2018-06-02 10:44:24 +02:00
all-packages.nix pinentry: Fix .override for pinentry_* 2018-06-11 20:58:58 +02:00
beam-packages.nix
coq-packages.nix coqPackages.iris: init at 3.1.0 (#40909) 2018-05-22 19:26:32 +02:00
darwin-packages.nix darwin.iproute2mac: init at 1.2.1 2018-06-09 22:47:21 +02:00
default.nix
dotnet-packages.nix Merge pull request #40612 from symphorien/boogie_vim 2018-05-29 19:58:20 +02:00
emacs-packages.nix emacsPackages.emacs-libvterm: init at unstable-2017-11-24 2018-05-16 14:02:49 +08:00
emscripten-packages.nix
haskell-packages.nix ghc: add version 8.4.3 2018-05-30 03:46:16 +02:00
haxe-packages.nix
impure.nix impure.nix: stringify path from NIX_PATH 2018-05-04 13:12:09 +02:00
java-packages.nix
lua-packages.nix luaPackages.mpack: fix build after #28029 2018-05-29 15:06:38 +00:00
make-tarball.nix
metrics.nix
ocaml-packages.nix ocamlPackages.linenoise: init at 1.1.0 (#41489) 2018-06-05 20:29:00 +02:00
perl-packages.nix perlPackages.JSON: fix cross-compilation 2018-06-11 07:46:04 +00:00
php-packages.nix Merge pull request #41625 from etu/php-codesniffer-updates 2018-06-09 01:32:12 +02:00
pure-packages.nix
python-packages.nix pythonPackages.pdf2image: init at 0.1.13 (#41741) 2018-06-11 20:01:01 +02:00
release-cross.nix
release-lib.nix
release-python.nix
release-small.nix
release.nix release: remove nix-repl 2018-05-31 20:09:20 -04:00
splice.nix
stage.nix aliases: add skip aliases config 2018-05-01 13:54:08 -05:00
unix-tools.nix click: fix locale in darwin 2018-06-11 14:47:48 -04:00
wine-packages.nix winePackages: move to pkgs/top-level/wine-packages.nix 2018-05-17 02:31:03 +03:00