NixOS / npm2nix

Generate nix expressions to build npm packages
MIT License
57 stars 32 forks source link

npm pack doesn't work on optimised store #26

Open ktosiek opened 9 years ago

ktosiek commented 9 years ago

I'm having problems with the default.nix created by npm2nix - when I'm running it on a system with auto-optimise-store = true, it fails when unpacking sources:

these derivations will be built:
  /nix/store/999c0py1dh9myzjnbdmadsk32iq25k4p-ext-sso-2.0.0.tgz.drv
  /nix/store/ixkcxny2i78npzf90zvbx8hg6xy6nk2x-nodejs-ext-sso-2.0.0.drv
building path(s) ‘/nix/store/6w7kjrm0svb2bn15l1gqm2c91649sdvj-ext-sso-2.0.0.tgz’
building path(s) ‘/nix/store/al8q629fak0ncj24gilwhki1aprziyk9-nodejs-ext-sso-2.0.0’
unpacking sources
unpacking source archive /nix/store/6w7kjrm0svb2bn15l1gqm2c91649sdvj-ext-sso-2.0.0.tgz
tar: package/sso/preferences/migrations/__init__.py: Cannot hard link to 'yibfgnx42kp1plrrpznafl022bfdrf2n-ext.sso/sso/preferences/__init__.py': No such file or directory
tar: package/sso/apps/migrations/__init__.py: Cannot hard link to 'yibfgnx42kp1plrrpznafl022bfdrf2n-ext.sso/sso/preferences/__init__.py': No such file or directory
(...)
tar: Exiting with failure status due to previous errors
do not know how to unpack source archive /nix/store/6w7kjrm0svb2bn15l1gqm2c91649sdvj-ext-sso-2.0.0.tgz
builder for ‘/nix/store/ixkcxny2i78npzf90zvbx8hg6xy6nk2x-nodejs-ext-sso-2.0.0.drv’ failed with exit code 1

The same command runs fine after setting auto-optimise-store = false (and rebuilding the .tgz).