nixpkgs-clarity: Automatically find and report issues for licenses in Nixpkgs
Improve code to automate scans review, and determine when a nixpkgs license is incorrect, what is the correct license. NB: These are specific rules for nixpkgs, especially given the large diversity of nixpkgs tech stacks and upstreams.
Hi @pombredanne! 👋
I'd love to take on this issue and contribute to the nixpkgs-clarity initiative. I have strong analytical abilities and a keen interest in creating visual reporting systems that make complex licensing data accessible and actionable.
My Proposed Approach 📊
Phase 1: Scan & Detect
- Automate license scanning across Nixpkgs packages
- Identify discrepancies between declared and detected licenses
- Flag packages with missing or incomplete licensing info
Phase 2: Classify & Analyze
- Categorize issues by type (incorrect, missing, ambiguous)
- Map upstream sources to validate correct licenses
- Handle diverse tech stacks specific to Nixpkgs ecosystem
Phase 3: Visualize & Report
- Create infographic dashboards showing issue distribution
- Generate visual walkthroughs of licensing problems
- Design clear, actionable reports for maintainers
Phase 4: Continuous Improvement
- Implement feedback loops for accuracy
- Refine detection rules based on Nixpkgs patterns
- Document findings with visual guides
Why I'm Excited 🎯
I'm particularly interested in transforming complex licensing data into intuitive visual formats that help maintainers quickly understand and resolve issues. I'll provide regular updates with visual progress indicators and infographic summaries to keep the community informed.
Would appreciate the opportunity to be assigned this issue and contribute to improving licensing clarity in Nixpkgs!
Looking forward to your feedback! 🚀
Hello maintainers, I’m interested in working on this issue as part of GSoC. I’ve gone through the issue details and related code, and I’d love to take ownership and start contributing. If it’s available, could you please assign this issue to me?
Hi @pombredanne I’ve been reviewing the current NixpkgsLicenseClarity pipeline. At the moment it performs a basic declared vs detected comparison, but it doesn’t handle semantic expression comparison (e.g., proper AND/OR logic) or suggest a corrected license when there’s a mismatch.
I’m planning to improve it by: Comparing license expressions semantically (not just string equality), Detecting subset/superset cases, Reporting clearer compliance alerts with a suggested corrected expression, And adding proper test coverage.
Before I proceed, should this focus strictly on declared vs detected license mismatches, or are there specific nixpkgs metadata conventions we should account for as well?
Thanks!