-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Use permanent links for ELPA/MELPA packages #125
Comments
This sounds like an issue that needs to be fixed in emacs2nix, see nix-community/emacs2nix#55. |
One other idea is to construct a |
Yeah, but unless we want to modify the files after running |
@adisbladis is a hero and fixed this at NixOS/nixpkgs#132937 :) Thanks!!! |
Closing because of NixOS/nixpkgs#132937 |
I totally agree with the “hero”! But is this really fixed? For my application the approach used in the fix worked so far. The corresponding cite from https://debbugs.gnu.org/cgi/bugreport.cgi?bug=46441:
Probably reproducible approaches would be (a) to use urls from archive.org or (b) use the elpa git repo. I demonstrated how to do the latter here. This would probably be done by emacs2nix. I admit it is not totally convenient since the git repo does not necessarily contain exactly the same version as elpa, and one needs to download the 250 MB git repo, instead of only a list of packages as in the current emacs2nix. |
There are probably ways around it. One that comes to mind is to have GitHub mirrors for ELPA etc. (there was one for ELPA even; and there's one for Emacs) and use GitHub API to the sources (via |
For building the packages, you're probably right. But the only way to get the right git revisions for the package versions seems to be to scrape the git log. |
Whenever a new version of a package is released on ELPA/MELPA, and this overlay isn't updated, we can no longer build the derivation. This is because the overlay references non-permanent source URLs (such as https://elpa.gnu.org/packages/auctex-13.0.4.tar). They should reference the git directly, such as http://git.savannah.gnu.org/cgit/emacs/elpa.git/snapshot/elpa-04d69c53183ef8a5e7593e35355e55896bf079d3.tar.gz or the actual git repo commit itself.
The text was updated successfully, but these errors were encountered: