2021-12-14 04:51:48 +01:00
|
|
|
{ pkgs, depot, ... }:
|
2020-08-21 12:12:57 +02:00
|
|
|
|
|
|
|
let
|
2020-08-31 02:16:31 +02:00
|
|
|
inherit (builtins) fetchGit path toJSON;
|
2021-12-14 04:51:48 +01:00
|
|
|
inherit (depot.users.wpcarro.emacs) initEl runScript;
|
2020-08-31 02:16:31 +02:00
|
|
|
|
|
|
|
elispLintSrc = fetchGit {
|
2020-08-27 19:27:12 +02:00
|
|
|
url = "https://github.com/gonewest818/elisp-lint";
|
|
|
|
rev = "2b645266be8010a6a49c6d0ebf6a3ad5bd290ff4";
|
|
|
|
};
|
|
|
|
|
2020-08-21 12:12:57 +02:00
|
|
|
pipeline.steps = [
|
2020-08-22 10:09:15 +02:00
|
|
|
{
|
|
|
|
key = "lint-secrets";
|
|
|
|
command = "${pkgs.git-secrets}/bin/git-secrets --scan-history";
|
|
|
|
label = ":broom: lint secrets";
|
|
|
|
}
|
2020-08-27 19:27:12 +02:00
|
|
|
{
|
|
|
|
key = "init-emacs";
|
2020-08-31 02:16:31 +02:00
|
|
|
command = let
|
|
|
|
scriptEl = path {
|
|
|
|
path = ./script.el;
|
|
|
|
name = "script.el";
|
|
|
|
};
|
|
|
|
runScriptEl = runScript {
|
|
|
|
script = scriptEl;
|
|
|
|
};
|
|
|
|
in "${runScriptEl} ${initEl}";
|
2020-08-27 19:27:12 +02:00
|
|
|
label = ":gnu: initialize Emacs";
|
2021-12-24 00:30:31 +01:00
|
|
|
depends_on = "lint-secrets";
|
2020-08-21 12:12:57 +02:00
|
|
|
}
|
|
|
|
];
|
2020-08-31 02:16:31 +02:00
|
|
|
in pkgs.writeText "pipeline.yaml" (toJSON pipeline)
|