rbvermaa / npm2nix

Generate nix expressions to build npm packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm2nix

Generate nix expressions from npmjs.org!

Usage

npm2nix node-packages.json node-packages.generated.nix

JSON structure

npm2nix expects the passed JSON file to be a list of strings and at most one object. Strings are taken as the name of the package. The object must be a valid dependencies object for an for an npm packages.json file. Alternatively, the passed JSON file can be an npm package.json, in which case the expressions for its dependencies will be generated.

About

Generate nix expressions to build npm packages

License:MIT License


Languages

Language:CoffeeScript 99.1%Language:Nix 0.7%Language:JavaScript 0.2%