Attempt to build Socrates using BuildKite

Let's see what happens...
This commit is contained in:
William Carroll 2020-08-16 15:42:16 +01:00
parent 334616392b
commit 208883243f
3 changed files with 9 additions and 1 deletions

View file

@ -0,0 +1,3 @@
set -e
/home/wpcarro/.nix-profile/bin/rebuild

View file

@ -6,8 +6,8 @@ let
# I'm building this using `nixos-rebuild`. When I better understand how to # I'm building this using `nixos-rebuild`. When I better understand how to
# build socrates using readTree, prefer defining this as an anonymous # build socrates using readTree, prefer defining this as an anonymous
# function. # function.
pkgs = import <nixpkgs> {};
briefcase = import <briefcase> {}; briefcase = import <briefcase> {};
pkgs = briefcase.third_party.pkgs;
trimNewline = x: pkgs.lib.removeSuffix "\n" x; trimNewline = x: pkgs.lib.removeSuffix "\n" x;
readSecret = x: trimNewline (builtins.readFile ("/etc/secrets/" + x)); readSecret = x: trimNewline (builtins.readFile ("/etc/secrets/" + x));

5
third_party/default.nix vendored Normal file
View file

@ -0,0 +1,5 @@
{ pkgs, unstable, briefcase, depot, ... }:
# Exposing these to be available as briefcase.third_party.pkgs for example.
{ inherit pkgs unstable briefcase depot; }