Merge pull request #293840 from philiptaron/remove-top-level-with-lib-in-maintainers
Remove top level `with lib;` in `maintainers/`
This commit is contained in:
commit
af6f83334e
2 changed files with 18 additions and 8 deletions
|
@ -1,9 +1,8 @@
|
|||
# Evaluate `release.nix' like Hydra would. Too bad nix-instantiate
|
||||
# can't to do this.
|
||||
|
||||
with import ../../lib;
|
||||
# Evaluate `release.nix' like Hydra would. Too bad nix-instantiate can't to do this.
|
||||
|
||||
let
|
||||
inherit (import ../../lib) isDerivation mapAttrs;
|
||||
|
||||
trace = if builtins.getEnv "VERBOSE" == "1" then builtins.trace else (x: y: y);
|
||||
|
||||
rel = removeAttrs (import ../../pkgs/top-level/release.nix { }) [ "tarball" "unstable" "xbursttools" ];
|
||||
|
|
|
@ -1,11 +1,22 @@
|
|||
# This expression returns a list of all fetchurl calls used by ‘expr’.
|
||||
|
||||
with import ../.. { };
|
||||
with lib;
|
||||
|
||||
{ expr }:
|
||||
{ expr, lib ? import ../../lib }:
|
||||
|
||||
let
|
||||
inherit (lib)
|
||||
addErrorContext
|
||||
attrNames
|
||||
concatLists
|
||||
const
|
||||
filter
|
||||
genericClosure
|
||||
isAttrs
|
||||
isDerivation
|
||||
isList
|
||||
mapAttrsToList
|
||||
optional
|
||||
optionals
|
||||
;
|
||||
|
||||
root = expr;
|
||||
|
||||
|
|
Loading…
Reference in a new issue