From 208883243fb9b2ea0d5d668c44b0da1d83850854 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Sun, 16 Aug 2020 15:42:16 +0100 Subject: [PATCH] Attempt to build Socrates using BuildKite Let's see what happens... --- ci/scripts/build-socrates.sh | 3 +++ nixos/socrates/configuration.nix | 2 +- third_party/default.nix | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 ci/scripts/build-socrates.sh create mode 100644 third_party/default.nix diff --git a/ci/scripts/build-socrates.sh b/ci/scripts/build-socrates.sh new file mode 100644 index 000000000..5b642b741 --- /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 7d958dbde..b9d2b2348 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 {}; briefcase = import {}; + 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 000000000..8135d756e --- /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; }