Skip to content

Nix pure solution using exportReferencesGraph #9

@aciceri

Description

@aciceri

@GuillaumeDesforges Hey, cool project!

Just these days I had the same exact problem of getting the reference closure of a flake (more precisely the union of all the reference closures of all the derivations for a fixed system between a flake's outputs) and I solved it with a pure Nix machinery that creates a "super derivation" that references all the derivation outputs and then using exportReferencesGraph.

How this solution compares to mine in terms of performances in your opinion? Have you considered it and discarded for some reason?

Bonus: If I consider drvPahs instead of outPaths I get the complete build closure which is what I need in my use case. Would it be possible getting it using nixtract?

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