Skip to content

Commit 58f1893

Browse files
committed
dapp/seth: fix nix-run invocations again
This time for real. The `--expr` argument semantics are that the installable is an attribute in the set the expression evaluates to, so we need to move `$expr` outside the nix expression. If that makes sense.
1 parent 93cbab4 commit 58f1893

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/dapp/libexec/dapp/dapp---nix-run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ have() { command -v "$1" >/dev/null; }
1616

1717
expr="$1"; shift
1818

19-
nix run --impure --expr "with import $DAPPTOOLS {}; $expr" -- "$@"
19+
nix run --impure --expr "import $DAPPTOOLS {}" "$expr" -- "$@"

src/seth/libexec/seth/seth---nix-run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ have() { command -v "$1" >/dev/null; }
1616

1717
expr="$1"; shift
1818

19-
nix run --impure --expr "with import $DAPPTOOLS {}; $expr" -- "$@"
19+
nix run --impure --expr "import $DAPPTOOLS {}" "$expr" -- "$@"

0 commit comments

Comments
 (0)