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,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 New Issue
Block a user