node2nix
node2nix copied to clipboard
Generate Nix expressions to build NPM packages
Elixir projects typically have a package.json file that contains the following: ```json { [...] "dependencies": { [...] "phoenix": "file:../deps/phoenix", "phoenix_html": "file:../deps/phoenix_html", "phoenix_live_view": "file:../deps/phoenix_live_view" }, [...] } ``` This was recommended...
This is my first time using `node2nix`, sorry if I am missing something silly. I am trying to package [Shinobi CCTV](https://gitlab.com/Shinobi-Systems/Shinobi), and have successfully invoked `node2nix` to generate the relevant...
So I generated *.nix files using `node2nix --lock package-lock.json --nodejs-16 --composition node.nix --development` and I expected that only *.nix files are needed and all information from `package-lock.json` has been taken...
I saw a previous discussion on the issue. I read through the discussion, but am unable to resolve this. I am using an off-line installation, so am not able to...
When using this tool inside a derivation it has no internet connection, but works OK as long as a lock file is provided. However, git dependencies are always fetched since...
Hi, thanks for this great project. I'm really trying hard to build a NextJS project using node2nix. I can't use the package-lock.json because devs don't want to use Nix and...
`package-lock.json` format has been upgraded to version 3, with most noticeable change: `dependencies` attributes doesn't exist anymore and node2nix should rely on `packages` instead. `packages` is present since at least...
It seems that node2nix currently performs blocking requests: ```diff diff --git a/lib/sources/NPMRegistrySource.js b/lib/sources/NPMRegistrySource.js index 57d99be..81c627f 100644 --- a/lib/sources/NPMRegistrySource.js +++ b/lib/sources/NPMRegistrySource.js @@ -79,7 +79,9 @@ NPMRegistrySource.prototype.fetch = function(callback) { }; }...
``` error: Package ‘nodejs-14.21.3’ in /nix/store/g68f5abh3xhcz8xsdlfw7wkgkkcx3nwy-source/pkgs/development/web/nodejs/v14.nix:11 is marked as insecure, refusing to evaluate. Known issues: - This NodeJS release has reached its end of life. See https://nodejs.org/en/about/releases/. You can install...
Running ```shell node2nix --nodejs-18 --development --input package.json ``` with `package.json` containing ```json [ { "highlight.js": "git+https://github.com/highlightjs/highlight.js.git#11.9.0" } ] ``` errors with the message ```text Cloning git repository: https://github.com/highlightjs/highlight.js.git Cloning into...