Skip to content

mutual with-imports don't work #2

Description

@fogti

This is an issue with the nixpkgs/lib/systems/{inspect,parse}.nix files, which mutually include themselves, and use nested with expressions, which makes static analysis about which free variables belong to which scope mostly impossible.

{ lib }:
with import ./parse.nix { inherit lib; };
with lib.attrsets;
with lib.lists;
{ lib }:
with lib.lists;
with lib.types;
with lib.attrsets;
with lib.strings;
with (import ./inspect.nix { inherit lib; }).predicates;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions