From 814590616e028077886d082177b4f0564de8f01c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Fri, 6 Jan 2023 21:06:39 +0100 Subject: [PATCH] Propagate --override-input's to nix run .#microvm-update-* --- packages.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/packages.nix b/packages.nix index 0f363a0a..ba14544f 100644 --- a/packages.nix +++ b/packages.nix @@ -8,8 +8,12 @@ let hostConf.ip4 or hostConf.ip6; # all the input flakes for `nix copy` to the build machine, - # allowing --override-input + # to be available for --override-input inputPaths = lib.escapeShellArgs (builtins.attrValues inputs); + overrideInputsArgs = lib.concatStringsSep " " (builtins.attrValues (lib.mapAttrs + (name: value: "--override-input ${name} ${value}") + (lib.filterAttrs (name: value: name != "self") inputs) + )); in lib.attrsets.mapAttrs (system: pkgs: @@ -168,6 +172,7 @@ lib.attrsets.mapAttrs [ -e current ] && cp --no-dereference current old nix build -L --accept-flake-config -o current \ + ${overrideInputsArgs} \ ${self}#nixosConfigurations.${name}.config.microvm.declaredRunner echo '${selfRef}' > flake