2022-07-30 06:12:59 +02:00
|
|
|
{ pkgs, depot, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cycle = pkgs.callPackage
|
|
|
|
({ emacsPackages }:
|
|
|
|
emacsPackages.trivialBuild {
|
|
|
|
pname = "cycle";
|
|
|
|
version = "1.0.0";
|
|
|
|
src = ./cycle.el;
|
|
|
|
packageRequires =
|
|
|
|
(with emacsPackages; [
|
|
|
|
dash
|
|
|
|
]) ++
|
|
|
|
(with depot.users.wpcarro.emacs.pkgs; [
|
|
|
|
struct
|
|
|
|
]);
|
|
|
|
})
|
|
|
|
{ };
|
|
|
|
|
|
|
|
emacs = (pkgs.emacsPackagesFor pkgs.emacs28).emacsWithPackages (epkgs: [
|
|
|
|
epkgs.dash
|
|
|
|
cycle
|
|
|
|
]);
|
|
|
|
in
|
|
|
|
cycle.overrideAttrs (_old: {
|
|
|
|
doCheck = true;
|
|
|
|
checkPhase = ''
|
|
|
|
${emacs}/bin/emacs -batch \
|
|
|
|
-l ert -l ${./tests.el} -f ert-run-tests-batch-and-exit
|
|
|
|
'';
|
2022-07-30 06:30:02 +02:00
|
|
|
passthru.meta.ci.extraSteps.github = depot.tools.releases.filteredGitPush {
|
|
|
|
filter = ":/users/wpcarro/emacs/pkgs/cycle";
|
|
|
|
remote = "git@github.com:wpcarro/cycle.el.git";
|
2022-08-02 22:49:47 +02:00
|
|
|
ref = "refs/heads/canon";
|
2022-07-30 06:30:02 +02:00
|
|
|
};
|
2022-07-30 06:12:59 +02:00
|
|
|
})
|