Ensure extra arguments passed to shell

Extra arguments passed to `use nix` (such as `--arg` or `--argstr`)
were getting clobbered by an errant re-definition. Removed that
definition so those arguments get passed along.
This commit is contained in:
Justin Bailey 2022-05-31 10:14:26 -07:00 committed by Jörg Thalheim
parent d74ad21a58
commit f3587d4c26
No known key found for this signature in database

View file

@ -313,7 +313,6 @@ use_nix() {
then
local tmp_profile="${layout_dir}/flake-profile.$$"
local tmp_profile_rc
local extra_args=()
if [[ "$packages" != "" ]]; then
extra_args+=("--expr" "with import <nixpkgs> {}; mkShell { buildInputs = [ $packages ]; }")