yarn2nix-0.10.1: Convert yarn.lock files to nix expressions
Safe HaskellNone
LanguageHaskell2010

Distribution.Nixpkgs.Nodejs.License

Description

 
Synopsis

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