Avoid with lib;
at the top level in maintainers/scripts/find-tarballs.nix
Tested with ``` nix-instantiate --readonly-mode --eval --strict --show-trace --json ./maintainers/scripts/find-tarballs.nix --arg expr 'import ./maintainers/scripts/all-tarballs.nix' ```
This commit is contained in:
parent
2526f8efa7
commit
ba515dec26
1 changed files with 15 additions and 4 deletions
|
@ -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