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.
30 lines
836 B
Nix
30 lines
836 B
Nix
with import ../../../.. {};
|
|
(emacsPackagesNgFor emacs26).
|
|
emacsWithPackages (epkgs: let
|
|
promise = epkgs.trivialBuild {
|
|
pname = "promise";
|
|
version = "1";
|
|
src = fetchFromGitHub {
|
|
owner = "bendlas";
|
|
repo = "emacs-promise";
|
|
rev = "4da97087c5babbd8429b5ce62a8323b9b03c6022";
|
|
sha256 = "0yin7kj69g4zxs30pvk47cnfygxlaw7jc7chr3b36lz51yqczjsy";
|
|
|
|
};
|
|
};
|
|
semaphore = epkgs.trivialBuild {
|
|
pname = "semaphore";
|
|
version = "1";
|
|
packageRequires = [ promise ];
|
|
src = fetchFromGitHub {
|
|
owner = "webnf";
|
|
repo = "semaphore.el";
|
|
rev = "93802cb093073bc6a6ccd797328dafffcef248e0";
|
|
sha256 = "09pfyp27m35sv340xarhld7xx2vv5fs5xj4418709iw6l6hpk853";
|
|
|
|
};
|
|
};
|
|
in [ promise semaphore ]
|
|
# ++ (with epkgs.melpaPackages; [ smex rainbow-delimiters paredit ])
|
|
)
|