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:
Philip Taron 2024-03-06 12:10:09 -08:00
parent 2526f8efa7
commit ba515dec26
No known key found for this signature in database

View File

@ -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;