db0cfd0616
More pruning on inter-library dependencies. Change-Id: I711ab92f2985b543ee2684752f9cdbf5559f2eaf Reviewed-on: https://cl.tvl.fyi/c/depot/+/6035 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
36 lines
876 B
Nix
36 lines
876 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; [
|
|
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
|
|
'';
|
|
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";
|
|
};
|
|
})
|