1
0
Fork 0
nixredo/nixredo-whichdo

6 lines
130 B
Plaintext
Raw Permalink Normal View History

#!/bin/sh
PATH="@binPath@:$PATH"
f=$(realpath -s "$1")
nix eval --impure --expr "with import @libnix@ {}; /. + (whichdo \"$f\")"