reproduce.tt: Use -I instead of $NIX_PATH

[?]
May 26, 2015, 2:07 PM
SM5PVIIJ2CV7IQ3PCILFMU2SG2CSUWKI3Q664PXM6LL3SFBS4SAQC

Dependencies

  • [2] TL7KZWSU reproduce.tt: Use color
  • [3] 4IH6RYSG Fix reproduce script
  • [4] 5Q4ZLL37 reproduce.tt: Add --help flag
  • [5] PGSSRA7C Add an input type "nix" for passing arbitrary Nix expressions
  • [6] MRINNBYY reproduce.tt: Add option to fetch but not build
  • [7] KRQGRRN7 Use extra-binary-caches
  • [8] 3G7OYUSE reproduce.tt: Check for the presence of commands like nix-build
  • [9] HZWUT4YN Allow users to reproduce builds on their own systems

Change contents

  • edit in src/root/reproduce.tt at line 67
    [4.1422][4.678:679](),[4.678][4.678:679]()
  • edit in src/root/reproduce.tt at line 68
    [4.1424][4.1424:1441]()
    export NIX_PATH=
  • replacement in src/root/reproduce.tt at line 86
    [4.846][3.106:182]()
    [% inputs = build.inputs.size > 0 ? build.inputs : eval.jobsetevalinputs %]
    [4.846]
    [3.182]
    [% inputs = build.inputs ? build.inputs : eval.jobsetevalinputs %]
  • replacement in src/root/reproduce.tt at line 168
    [4.3064][4.3064:3129]()
    NIX_PATH="$NIX_PATH${NIX_PATH:+:}[% input.name %]=$inputDir"
    [4.3064]
    [4.3129]
    args+=(-I [% input.name %]=$inputDir)
  • replacement in src/root/reproduce.tt at line 192
    [4.394][4.3499:3567](),[2.475][4.3499:3567](),[4.3499][4.3499:3567]()
    echo "Nix path is $NIX_PATH" >&2
    echo "Nix args are ${args[@]}" >&2
    [2.475]
    [4.3567]
    echo "using these flags: ${args[@]}" >&2