tvl-depot/users/wpcarro/emacs/pkgs/struct/default.nix
William Carroll 31bd89c777 feat(wpcarro/emacs): filteredGitPush struct.el
Expose struct.el on Github (precursor to a potential MELPA publish).

Change-Id: Ic03af87d77b4bcfd660db8dba35ed3e6695ddc1e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6031
Tested-by: BuildkiteCI
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
2022-08-03 17:08:00 +00:00

29 lines
724 B
Nix

{ pkgs, depot, ... }:
let
struct = pkgs.callPackage
({ emacsPackages }:
emacsPackages.trivialBuild {
pname = "struct";
version = "1.0.0";
src = ./struct.el;
packageRequires = [ ];
})
{ };
emacs = (pkgs.emacsPackagesFor pkgs.emacs28).emacsWithPackages (epkgs: [
struct
]);
in
struct.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/struct";
remote = "git@github.com:wpcarro/struct.el.git";
ref = "refs/heads/canon";
};
})