reproduce.tt: Add --print-flags option
[?]
May 26, 2015, 2:36 PM
UROSQNYPEQJWILVG7JFJYT673C5IL4RXCKZKBUKGXXZND7JK6DLACDependencies
- [2]
TL7KZWSUreproduce.tt: Use color - [3]
MRINNBYYreproduce.tt: Add option to fetch but not build - [4]
HZWUT4YNAllow users to reproduce builds on their own systems - [5]
5Q4ZLL37reproduce.tt: Add --help flag - [6]
SM5PVIIJreproduce.tt: Use -I instead of $NIX_PATH
Change contents
- edit in src/root/reproduce.tt at line 19
printFlags= - edit in src/root/reproduce.tt at line 50
--print-flagsFetch the inputs, then print the argument to nix-build on stdoutand exit. - edit in src/root/reproduce.tt at line 68
elif [ "$arg" = --print-flags ]; thenprintFlags=1 - edit in src/root/reproduce.tt at line 198
args+=("$nixExprInputDir/[% build.nixexprpath %]" -A '[% build.job.name %]')if [ -n "$printFlags" ]; thenfirst=1for i in "${args[@]}"; doif [ -z "$first" ]; then printf " "; fifirst=printf "%q" "$i"doneexit 0fi - replacement in src/root/reproduce.tt at line 213
exec nix-build "$nixExprInputDir/[% build.nixexprpath %]" -A '[% build.job.name %]' "${args[@]}" "${extraArgs[@]}"[4.3568]exec nix-build "${args[@]}" "${extraArgs[@]}"