forked from mirrors/nixpkgs
d65f1b20c3
This approach has several differences with emacs2nix: - the updater uses a downloaded recipes.json and archive.json for commit information, it uses a local checkout only for hashing the recipes - the generated file is JSON - the updater is written in emacs lisp - prefetch errors are put into an error key in the JSON, for review + meta.broken attributes are generated from it The updater re-uses the existing generated file to memoize prefetched content-sha256s for commits, thus prefetching should normally be quite fast.
9 lines
353 B
Plaintext
Executable file
9 lines
353 B
Plaintext
Executable file
#! /usr/bin/env nix-shell
|
|
#! nix-shell --show-trace -i sh -p git nix nix-prefetch-git nix-prefetch-hg "import ./updater-emacs.nix"
|
|
|
|
# "with import ../../../.. {}; emacsWithPackages (epkgs: with epkgs.melpaPackages; [ promise semaphore ])"
|
|
|
|
exec emacs --fg-daemon=updater --quick -l update-melpa.el -f run-updater "$@"
|
|
|
|
# exec emacs update-melpa.el "$@"
|