Attempt to build Socrates using BuildKite
Let's see what happens...
This commit is contained in:
parent
334616392b
commit
208883243f
3 changed files with 9 additions and 1 deletions
3
ci/scripts/build-socrates.sh
Normal file
3
ci/scripts/build-socrates.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
set -e
|
||||
|
||||
/home/wpcarro/.nix-profile/bin/rebuild
|
|
@ -6,8 +6,8 @@ let
|
|||
# I'm building this using `nixos-rebuild`. When I better understand how to
|
||||
# build socrates using readTree, prefer defining this as an anonymous
|
||||
# function.
|
||||
pkgs = import <nixpkgs> {};
|
||||
briefcase = import <briefcase> {};
|
||||
pkgs = briefcase.third_party.pkgs;
|
||||
|
||||
trimNewline = x: pkgs.lib.removeSuffix "\n" x;
|
||||
readSecret = x: trimNewline (builtins.readFile ("/etc/secrets/" + x));
|
||||
|
|
5
third_party/default.nix
vendored
Normal file
5
third_party/default.nix
vendored
Normal 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; }
|
Loading…
Reference in a new issue