Unverified Commit ba93ec21 authored by Philip Taron's avatar Philip Taron
Browse files

pkgs: remove with statements in aliases

parent 65ec5b64
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -22,16 +22,16 @@ with self;
let
  # Removing recurseForDerivation prevents derivations of aliased attribute set
  # to appear while listing all the packages available.
  removeRecurseForDerivations = alias: with lib;
  removeRecurseForDerivations = alias:
    if alias.recurseForDerivations or false
    then removeAttrs alias [ "recurseForDerivations" ]
    then lib.removeAttrs alias [ "recurseForDerivations" ]
    else alias;

  # Disabling distribution prevents top-level aliases for non-recursed package
  # sets from building on Hydra.
  removeDistribute = alias: with lib;
    if isDerivation alias then
      dontDistribute alias
  removeDistribute = alias:
    if lib.isDerivation alias then
      lib.dontDistribute alias
    else alias;

  transmission3Warning = { prefix ? "", suffix ? "" }: let