1
0
Fork 0
nixredo/nixredo-whichdo

6 lines
130 B
Bash

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