Move tweakAlias function into the aliases.nix file, and rename it.

wip/yesman
Nicolas B. Pierron 8 years ago
parent f7c86ee018
commit 0b67f7cb5d
  1. 14
      pkgs/top-level/aliases.nix
  2. 7
      pkgs/top-level/all-packages.nix

@ -2,9 +2,21 @@ self:
with self;
let
# Removind recurseForDerivation prevents derivations of aliased attribute
# set to appear while listing all the packages available.
removeRecurseForDerivations = _n: alias: with lib;
if alias.recurseForDerivations or false then
removeAttrs alias ["recurseForDerivations"]
else alias;
doNotDisplayTwice = aliases:
lib.mapAttrs removeRecurseForDerivations aliases;
in
### Deprecated aliases - for backward compatibility
rec {
doNotDisplayTwice rec {
accounts-qt = qt5.accounts-qt; # added 2015-12-19
adobeReader = adobe-reader;
aircrackng = aircrack-ng; # added 2016-01-14

@ -16474,13 +16474,8 @@ let
aliases = import ./aliases.nix self;
tweakAlias = _n: alias: with lib;
if alias.recurseForDerivations or false then
removeAttrs alias ["recurseForDerivations"]
else alias;
in
lib.mapAttrs tweakAlias aliases // helperFunctions // stdenvDefault // self // overrides;
aliases // helperFunctions // stdenvDefault // self // overrides;
in
pkgs

Loading…
Cancel
Save