forked from lix-project/lix
3093af58a7
their output paths (and only that) on standard output.
24 lines
410 B
Plaintext
Executable file
24 lines
410 B
Plaintext
Executable file
#! @shell@ -e
|
|
|
|
nixExpr=$1
|
|
|
|
if test -z "$nixExpr"; then
|
|
echo "syntax: $0 NIX-EXPR..." >&2
|
|
exit 1
|
|
fi
|
|
|
|
extraArgs=
|
|
|
|
for i in "$@"; do
|
|
case "$i" in
|
|
-*)
|
|
extraArgs="$extraArgs $i"
|
|
;;
|
|
*)
|
|
storeExpr=$(nix-instantiate "$i")
|
|
echo "store expression is $storeExpr" >&2
|
|
nix-store -qnfv $extraArgs $storeExpr
|
|
;;
|
|
esac
|
|
done
|