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’.
|
# This expression returns a list of all fetchurl calls used by ‘expr’.
|
||||||
|
|
||||||
with import ../.. { };
|
{ expr, lib ? import ../../lib }:
|
||||||
with lib;
|
|
||||||
|
|
||||||
{ expr }:
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (lib)
|
||||||
|
addErrorContext
|
||||||
|
attrNames
|
||||||
|
concatLists
|
||||||
|
const
|
||||||
|
filter
|
||||||
|
genericClosure
|
||||||
|
isAttrs
|
||||||
|
isDerivation
|
||||||
|
isList
|
||||||
|
mapAttrsToList
|
||||||
|
optional
|
||||||
|
optionals
|
||||||
|
;
|
||||||
|
|
||||||
root = expr;
|
root = expr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue