tvl-depot/users/wpcarro/emacs/pkgs/cycle/default.nix
William Carroll 9d475c5b9b refactor(wpcarro/emacs): Remove cycle.el dep on list.el
Cleaning-up the dependency graph before (maybe) publishing this to MELPA.

Change-Id: Ic30c5e155621d57f0fd3ec30ef6c9e4ab14aba3e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6026
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
2022-08-02 20:31:23 +00:00

38 lines
934 B
Nix

{ 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; [
maybe
struct
]);
})
{ };
emacs = (pkgs.emacsPackagesFor pkgs.emacs28).emacsWithPackages (epkgs: [
epkgs.dash
depot.users.wpcarro.emacs.pkgs.maybe
cycle
]);
in
cycle.overrideAttrs (_old: {
doCheck = true;
checkPhase = ''
${emacs}/bin/emacs -batch \
-l ert -l ${./tests.el} -f ert-run-tests-batch-and-exit
'';
passthru.meta.ci.extraSteps.github = depot.tools.releases.filteredGitPush {
filter = ":/users/wpcarro/emacs/pkgs/cycle";
remote = "git@github.com:wpcarro/cycle.el.git";
ref = "refs/heads/main";
};
})