| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Distribution.Nixpkgs.Nodejs.License
Description
Synopsis
- nodeLicenseToNixpkgs :: Text -> LicensesBySpdxId -> NExpr
- data LicensesBySpdxId
Conversion Logic
nodeLicenseToNixpkgs :: Text -> LicensesBySpdxId -> NExpr Source #
Implements the logic for converting from an (optional)
package.json license field to a nixpkgs meta.license
set. Since support for multiple licenses is poor in nixpkgs
at the moment, we don't attempt to convert SPDX expressions
like (ISC OR GPL-3.0-only).
See https://docs.npmjs.com/files/package.json#license for
details on npm's license field.
License Lookup Table
data LicensesBySpdxId Source #
Lookup table from SPDX identifier (as Text) to NixpkgsLicense.