Unverified Commit 708b85ac authored by Kylie McClain's avatar Kylie McClain
Browse files

services.self-deploy: fix nix-build argument format

nix-build doesn't accept `--attr=<attribute>` as a valid way to
build a specific attribute; it needs to be passed without the
equal sign, as two separate arguments.
parent 1014b658
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -179,7 +179,13 @@ in
        ${gitWithRepo} checkout FETCH_HEAD

        nix-build${renderNixArgs cfg.nixArgs} ${
          lib.cli.toCommandLineShellGNU { } {
          lib.cli.toCommandLineShell
            (optionName: {
              option = "--${optionName}";
              sep = null;
              explicitBool = false;
            })
            {
              attr = cfg.nixAttribute;
              out-link = outPath;
            }