nix-community / yarn2nix

Generate nix expressions from a yarn.lock file [maintainer=???]
GNU General Public License v3.0
123 stars 61 forks source link

yarn2nix is using lib.importJSON which isn't allowed on Hydra #83

Open arianvp opened 5 years ago

arianvp commented 5 years ago

This line: https://github.com/moretea/yarn2nix/blob/master/default.nix#L149 Doesn't evaluate on hydra because it uses import-from-derivation to function.
It's only used to extract the pname and the version field. Would be nice to allow the user to provide these manually to remove the impurity from the build.

zimbatm commented 5 years ago

Created https://github.com/moretea/yarn2nix/pull/84 to demonstrate the issue

zimbatm commented 5 years ago

There might be some more issues with evaluation in Hydra but IFD shouldn't be a problem as shown in #84. All the cool features of yarn2nix depend on IFD but it's usable without.