aboutcode-org / aboutcode-org/scancode-toolkit

Add support for nix packages

未关闭
#2,823 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
new feature package scan
主要语言
Python
星标
2.6k
派生
791
平均合并
1 天 12 小时
30 天内合并 PR
5

描述

We should add support for https://nixos.org/ packages
An example of a nix "derivation" is at https://github.com/nix-community/nix-direnv/blob/master/flake.nix
This is like a package manifest.
For instance, this is one of the packages of ScanCode in nix:
https://github.com/NixOS/nixpkgs/blob/nixos-21.11/pkgs/development/python-modules/pyahocorasick/default.nix#L29

Of note: it uses its own "language" for license declaration. We may need a simple pygmars-based nix parser. Check also https://framagit.org/upt/upt-nix/-/blob/master/upt_nix/upt_nix.py

Some other pointers include:
- https://github.com/pombredanne/nix-derivation-tool

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。