This repository was archived by the owner on Sep 1, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 46
This repository was archived by the owner on Sep 1, 2025. It is now read-only.
Support nodejs modules from github #860
Copy link
Copy link
Closed
Labels
difficulty::mediumhelp wantedWill be solved only if someone contributes itWill be solved only if someone contributes it
Description
npm supports installing directly from github repos, which comes in handy as sometimes, maintainers take a long time to publish new versions to npm
https://docs.npmjs.com/cli/v9/configuring-npm/package-json#git-urls-as-dependencies
https://docs.npmjs.com/cli/v9/configuring-npm/package-json#github-urls
perhaps the structure in the package-lock changes a bit, causing makes to fail when installing the deps
error: attribute 'integrity' missing
at /nix/store/hawaw7ivjjrq228iak21lvcjq7nxpax2-source/src/args/make-node-js-modules/default.nix:77:34:
76| value = {
77| dist.integrity = versionAttrs.integrity;
| ^
78| dist.tarball = versionAttrs.resolvedName;
… while evaluating anonymous lambda
at /nix/store/hawaw7ivjjrq228iak21lvcjq7nxpax2-source/src/args/make-derivation/default.nix:27:9:
26| builtins.mapAttrs
27| (k: v: (
| ^
28| if (hasPrefix "__" k) || (hasPrefix "env" k)
… from call site
… while evaluating the attribute 'envAll' of the derivation 'gatsby-source-cloudinary.json'
at /nix/store/hawaw7ivjjrq228iak21lvcjq7nxpax2-source/src/args/make-derivation/default.nix:92:7:
91| builder = "${__nixpkgs__.bash}/bin/bash";
92| name = toDerivationName name;
| ^
93| outputs = ["out"];
… while evaluating 'escapeShellArg'
Tested with npm i --save https://github.com/cloudinary-devs/gatsby-source-cloudinary#19a2115fdf876c55ff74756e6dfd8d775bad636c
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
difficulty::mediumhelp wantedWill be solved only if someone contributes itWill be solved only if someone contributes it
