tvl-depot/users/wpcarro/ci/pipelines/post-receive.nix
Vincent Ambo 4753e2f286 chore(wpcarro/*): Remove some dead code
Found this while looking for non-3p uses of builtins.fetchGit. The
hailgun package is in the package set now, and the other thing was
unused (and it's also in the package set).

Change-Id: I6f519fd6014bbed90fc6cee695bed7afbcf55717
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4984
Tested-by: BuildkiteCI
Autosubmit: tazjin <tazjin@tvl.su>
Reviewed-by: wpcarro <wpcarro@gmail.com>
2022-01-18 19:22:12 +00:00

28 lines
685 B
Nix

{ pkgs, depot, ... }:
let
inherit (builtins) path toJSON;
inherit (depot.users.wpcarro.emacs) initEl runScript;
pipeline.steps = [
{
key = "lint-secrets";
command = "${pkgs.git-secrets}/bin/git-secrets --scan-history";
label = ":broom: lint secrets";
}
{
key = "init-emacs";
command = let
scriptEl = path {
path = ./script.el;
name = "script.el";
};
runScriptEl = runScript {
script = scriptEl;
};
in "${runScriptEl} ${initEl}";
label = ":gnu: initialize Emacs";
depends_on = "lint-secrets";
}
];
in pkgs.writeText "pipeline.yaml" (toJSON pipeline)