After a handful of failed attempts to run lint-secrets.sh due to a missing
`git-secrets` executable on my git server, I decided that now was a good time to
use Nix to define my BuildKite pipelines.
TL;DR:
- Delete ci/scripts directory
- Define ci/pipelines/{briefcase,socrates}.nix
Outside of this repository:
- I logged into my admin account at git.wpcarro.dev and changed my Gitea
  post-receive hook to trigger the briefcase pipeline
- I logged into my BuildKite account, deleted my build-briefcase pipeline,
  created a new briefcase pipeline that called:
  ```shell
  nix-build -A ci.pipelines.briefcase -o briefcase.yaml
  buildkite-agent pipeline upload briefcase.yaml
  ```
One day I will audit all of my ad-hoc, non-mono-repo activity (like the steps I
listed above) and attempt to fit everything herein... one step at a time,
though!
		
	
			
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			898 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			898 B
		
	
	
	
		
			Nix
		
	
	
	
	
	
| { ... }:
 | |
| 
 | |
| let
 | |
|   depot = import (builtins.fetchGit {
 | |
|     url = "https://cl.tvl.fyi/depot";
 | |
|     rev = "a2e86152401c7c531801c79347c3f15e1806aabc";
 | |
|   }) {};
 | |
|   readTree = depot.nix.readTree {
 | |
|     pkgs = import (builtins.fetchGit {
 | |
|       url = "https://github.com/NixOS/nixpkgs-channels";
 | |
|       ref = "nixos-20.03";
 | |
|       rev = "afa9ca61924f05aacfe495a7ad0fd84709d236cc";
 | |
|     }) {};
 | |
|     briefcase = import (builtins.path {
 | |
|       path = ./.;
 | |
|       name = "briefcase";
 | |
|     }) {};
 | |
|     depot = depot;
 | |
|   };
 | |
| in {
 | |
|   ci           = readTree ./ci;
 | |
|   nixos        = readTree ./nixos;
 | |
|   utils        = readTree ./utils;
 | |
|   emacs        = readTree ./emacs;
 | |
|   website      = readTree ./website;
 | |
|   lisp         = readTree ./lisp;
 | |
|   gopkgs       = readTree ./gopkgs;
 | |
|   third_party  = readTree ./third_party;
 | |
|   tools        = readTree ./tools;
 | |
|   buildHaskell = readTree ./buildHaskell;
 | |
|   zoo          = readTree ./zoo;
 | |
| }
 |