Useful when scripting stuff (e.g. if you want to do a nix-instantiate instead of a nix-build).
UROSQNYPEQJWILVG7JFJYT673C5IL4RXCKZKBUKGXXZND7JK6DLAC
TL7KZWSUFZAGA5XTOIR3IIDYVZADNSKJQ4RGK2J7NHWZGYB6WACQC
MRINNBYYYM7PZ3L6AUSLJCEWKCPHI7T34CPEMLVA6EDWAAPW56FQC
5Q4ZLL37EZJQJ2VJW2Z5NRR4C7TA6657HLZXXKM4UWSGEMII7SRQC
HZWUT4YNGQE3RSTS7XAZK4UQCUHZ5KHA7CHL2JNSXQIPPB6UGKTQC
printFlags=
--print-flags Fetch the inputs, then print the argument to nix-build on stdout and exit.
--print-flags
Fetch the inputs, then print the argument to nix-build on stdout
and exit.
elif [ "$arg" = --print-flags ]; then printFlags=1
elif [ "$arg" = --print-flags ]; then
printFlags=1
args+=("$nixExprInputDir/[% build.nixexprpath %]" -A '[% build.job.name %]')if [ -n "$printFlags" ]; then first=1 for i in "${args[@]}"; do if [ -z "$first" ]; then printf " "; fi first= printf "%q" "$i" done exit 0fi
args+=("$nixExprInputDir/[% build.nixexprpath %]" -A '[% build.job.name %]')
if [ -n "$printFlags" ]; then
first=1
for i in "${args[@]}"; do
if [ -z "$first" ]; then printf " "; fi
first=
printf "%q" "$i"
done
exit 0
fi
exec nix-build "$nixExprInputDir/[% build.nixexprpath %]" -A '[% build.job.name %]' "${args[@]}" "${extraArgs[@]}"
exec nix-build "${args[@]}" "${extraArgs[@]}"