diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-16T14·42+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-20T10·26+0100 |
commit | 208883243fb9b2ea0d5d668c44b0da1d83850854 (patch) | |
tree | 56f4cf387099499458f5c8a83baf94de609d22e1 | |
parent | 334616392b5887d2d17c9a0b118e6002a74e4bae (diff) |
Attempt to build Socrates using BuildKite
Let's see what happens...
-rw-r--r-- | ci/scripts/build-socrates.sh | 3 | ||||
-rw-r--r-- | nixos/socrates/configuration.nix | 2 | ||||
-rw-r--r-- | third_party/default.nix | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/ci/scripts/build-socrates.sh b/ci/scripts/build-socrates.sh new file mode 100644 index 000000000000..5b642b741270 --- /dev/null +++ b/ci/scripts/build-socrates.sh @@ -0,0 +1,3 @@ +set -e + +/home/wpcarro/.nix-profile/bin/rebuild diff --git a/nixos/socrates/configuration.nix b/nixos/socrates/configuration.nix index 7d958dbdeb73..b9d2b23485bb 100644 --- a/nixos/socrates/configuration.nix +++ b/nixos/socrates/configuration.nix @@ -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)); diff --git a/third_party/default.nix b/third_party/default.nix new file mode 100644 index 000000000000..8135d756e365 --- /dev/null +++ b/third_party/default.nix @@ -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; } |