2004-06-22 15:12:34 +00:00
|
|
|
#! @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")
|
2004-06-22 15:17:04 +00:00
|
|
|
for j in $storeExpr; do
|
|
|
|
echo "store expression is $j" >&2
|
|
|
|
done
|
2004-06-22 15:12:34 +00:00
|
|
|
nix-store -qnfv $extraArgs $storeExpr
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
done
|