Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building URLs doesn't work reliably with alternate stores #2085

Closed
lheckemann opened this issue Apr 18, 2018 · 3 comments
Closed

Building URLs doesn't work reliably with alternate stores #2085

lheckemann opened this issue Apr 18, 2018 · 3 comments

Comments

@lheckemann
Copy link
Member

% nix-build -f https://github.com/lheckemann/numptyphysics/archive/master.zip --store /tmp/nix
[1.1/0.0 MiB DL] downloading 'https://github.com/lheckemann/numptyphysics/archive/master.zip'tar: /nix/store/qmr3gvvb4g0bx6pdk0m7kk16g4zl2avy-master.zip: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
[1.1 MiB DL]
error: program 'tar' failed with exit code 2

This seems to be because it attempts to extract the tarball which has been downloaded to /tmp/nix/nix/store/… as if it were in /nix/store/….

@edolstra
Copy link
Member

This is fixed in 0995763. Note however that Nix does not support zip files. You need to use master.tar.gz, e.g.

$ nix-build https://github.com/lheckemann/numptyphysics/archive/master.tar.gz --store ~/my-nix/
these derivations will be built:
  /nix/store/bwq1rdykgi0i95v6sm8zln5cf45mv82m-numptyphysics.drv
...

@lheckemann
Copy link
Member Author

Whoops, yes, that was my mistake in copying and pasting.

The same problem still exists with ssh-ng though presumably?

@edolstra
Copy link
Member

Yes, that's not easy to fix though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants