tvl-depot/users/wpcarro/emacs/pkgs/cycle/default.nix
William Carroll 6f71482534 fix(wpcarro/emacs): refs/heads/main -> refs/heads/canon
Let's just roll with the TVL conventions

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

38 lines
935 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/canon";
};
})