4 ms·
Yes, packages in Nixpkgs (the official repository of Nix packages) have mandatory copyright or license information. This can also be accessed programmatically,
by rnhmjoj 6y ago
Yes, packages in Nixpkgs (the official repository of Nix packages) have mandatory copyright or license information.
This can also be accessed programmatically, if you intend to scan all your dependencies:
$ nix-env -qaA nixpkgs.vim --json | jq '."nixpkgs.vim".meta.license'
{
"fullName": "Vim License",
"shortName": "vim",
"spdxId": "Vim",
"url": "https://spdx.org/licenses/Vim.html"
}
A large majority of the packages is built from source and so you can easily inspect it. For example, running `nix-build
'<nixpkgs>' -A vim.src` will fetch the source tarball and link it in the current directory.