https://github.com/nixos/npm2nix
Generate nix expressions to build npm packages
https://github.com/nixos/npm2nix
Last synced: 4 months ago
JSON representation
Generate nix expressions to build npm packages
- Host: GitHub
- URL: https://github.com/nixos/npm2nix
- Owner: NixOS
- License: mit
- Archived: true
- Created: 2014-05-02T07:28:06.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-31T10:31:21.000Z (about 8 years ago)
- Last Synced: 2024-10-30T08:26:13.959Z (about 1 year ago)
- Language: CoffeeScript
- Homepage:
- Size: 146 KB
- Stars: 57
- Watchers: 7
- Forks: 32
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DISCLAIMER: This project is no longer maintained. Instead use [node2nix](https://github.com/svanderburg/node2nix)
-----------
npm2nix
=======
Generate nix expressions from npmjs.org!
Usage
-----
`npm2nix [--no-dev] node-packages.json node-packages.generated.nix`
`no-dev` ignores development dependencies
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.
Development
-----------
- `nix-shell`
- `grunt watch`
Release
-------
- `export GITHUB_USERNAME=`
- `export GITHUB_PASSWORD=`
- `grunt release:patch/minor/major`