Skip to content

Commit 7ae37af

Browse files
committed
Fix using hix --command and --projectArgs together
1 parent 567a347 commit 7ae37af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hix/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ let
9292
--projectArgs)
9393
printf %s "$2" > "$HIX_TMPDIR/projectArgs.nix"
9494
shift
95+
args+=(--override-input projectArgs "$(realpath "$HIX_TMPDIR")")
9596
;;
9697
--supportedSystems)
9798
printf %s "$2" > "$HIX_TMPDIR/supportedSystems.nix"
@@ -166,7 +167,6 @@ let
166167
cp $HIX_FLAKE $FLAKE/flake.nix
167168
chmod +w $FLAKE/flake.nix
168169
fi
169-
args+=(--override-input projectArgs "$(realpath "$HIX_TMPDIR")")
170170
nix $cmd "''${args[@]}"
171171
;;
172172
esac

0 commit comments

Comments
 (0)