From 82d5a24dfa4695b99e5da934c7e9b60777c6200b Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 29 Jan 2021 16:04:38 +0100 Subject: [PATCH] deploy: Do not fail with broken local config --- shell.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/shell.nix b/shell.nix index c32ca2b..df9d51a 100644 --- a/shell.nix +++ b/shell.nix @@ -23,6 +23,10 @@ let deploy = '' set -e + # If a deployment to localhost introduces an evaluation error, future + # deployments will fail since the overlay compat can’t parse the + # configuration. Overlays aren’t needed to build the krops deploy script. + export NIX_PATH="$(sed 's/:nixpkgs-overlays=[^:]*//' <<< "$NIX_PATH")" $(nix-build --no-out-link deploy.nix -A "$1") '';