Skip to content

Start using meta.nix#203

Closed
henrirosten wants to merge 2 commits into
mainfrom
start-using-meta-nix
Closed

Start using meta.nix#203
henrirosten wants to merge 2 commits into
mainfrom
start-using-meta-nix

Conversation

@henrirosten

@henrirosten henrirosten commented Aug 17, 2025

Copy link
Copy Markdown
Collaborator

Start using meta.nix to read the nix meta information in cases where the target is a flake reference with an output attribute. Fallback to using the old method of reading the nixpkgs pin from the target and generating the nix meta information from nixpgks top-level attributes with nix-env -qa --meta --json -f /path/to/nixpkgs if meta.nix fails (e.g. when the target is a nix store path, not a flake reference). This makes reading the nix meta more accurate and less hacky in cases where meta.nix can read the meta information.

meta.nix heavily borrows from Bombon especially its buildtime-dependencies.nix.

Fixes: #150
Possibly resolves: #157

@henrirosten henrirosten force-pushed the start-using-meta-nix branch 2 times, most recently from 9eec1ed to 6a05cc0 Compare August 18, 2025 11:53
@henrirosten henrirosten requested a review from a team August 18, 2025 12:29
@henrirosten henrirosten marked this pull request as ready for review August 18, 2025 12:29
@henrirosten

Copy link
Copy Markdown
Collaborator Author

While testing this, I notice the following: nikstur/bombon#170. I will not merge this yet.

Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
Signed-off-by: Henri Rosten <henri.rosten@unikie.com>
@henrirosten

Copy link
Copy Markdown
Collaborator Author

Closed, in preference to: #294

@henrirosten henrirosten deleted the start-using-meta-nix branch May 25, 2026 04:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make nixmeta.csv extensible Most Haskell packages fail to have their license information extracted

1 participant