diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-17T08·48+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-20T10·26+0100 |
commit | 7833632a7961038e8898ef287fd2dedf8fa7f33b (patch) | |
tree | 2c7cc90e0eda2900314fdec02bbfddc1b55f7f1e /website/sandbox/default.nix.ignore | |
parent | 51cdb872237c86f33a14a845f62a6ee5f267bed6 (diff) |
Attempt nix-build instead of nixos-rebuild switch
I've encountered a few problems with attempting to support nixos-rebuild: - the activation step requires `sudo` privileges - the `buildkite-agent` runs on the same machine, socrates, that is rebuilding itself. This means that when the activation step runs, it will attempt to restart `buildkite-agent` when the agent is still working I'm slowly removing places in my nix code that rely on '<bracket>' notation, so that I no longer depend on NIX_PATH being set. I still have more work to do. {covid-uk,sandbox}/default.nix are breaking when I attempt to run my build-socrates.sh script locally, so I'm temporarily disabling them until I can get CI working as I expect.
Diffstat (limited to 'website/sandbox/default.nix.ignore')
-rw-r--r-- | website/sandbox/default.nix.ignore | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/website/sandbox/default.nix.ignore b/website/sandbox/default.nix.ignore new file mode 100644 index 000000000000..4f86b49002a5 --- /dev/null +++ b/website/sandbox/default.nix.ignore @@ -0,0 +1,13 @@ +{ pkgs, briefcase, ... }: + +pkgs.stdenv.mkDerivation { + name = "covid-uk"; + buildInputs = []; + src = builtins.path { path = ./.; name = "sandbox"; }; + buildPhase = '' + mkdir -p $out + cp $src/index.html $out + cp -r ${briefcase.website.sandbox.covid-uk} $out/covid-uk + ''; + dontInstall = true; +} |