From f5ecb7a81a6ba3a244fdfb427a5f106bcd8b1c9e Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 26 May 2015 16:07:00 +0200 Subject: [PATCH] reproduce.tt: Use -I instead of $NIX_PATH --- src/root/reproduce.tt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/root/reproduce.tt b/src/root/reproduce.tt index 3d499c89..36383bff 100644 --- a/src/root/reproduce.tt +++ b/src/root/reproduce.tt @@ -66,8 +66,6 @@ EOF done -export NIX_PATH= - mkdir -p "$tmpDir" cd "$tmpDir" info "storing inputs and results in $tmpDir..." @@ -85,7 +83,7 @@ requireCommand() { # Fetch the inputs. -[% inputs = build.inputs.size > 0 ? build.inputs : eval.jobsetevalinputs %] +[% inputs = build.inputs ? build.inputs : eval.jobsetevalinputs %] [%+ FOREACH input IN inputs %] inputDir= @@ -167,7 +165,7 @@ nixExprInputDir="$inputDir" [%+ END %] if [ -n "$inputDir" ]; then - NIX_PATH="$NIX_PATH${NIX_PATH:+:}[% input.name %]=$inputDir" + args+=(-I [% input.name %]=$inputDir) fi [%+ END %] @@ -191,7 +189,6 @@ args+=(--option extra-binary-caches '[% c.uri_for('/') %]') args+=(--option system x86_64-linux) info "running nix-build..." -echo "Nix path is $NIX_PATH" >&2 -echo "Nix args are ${args[@]}" >&2 +echo "using these flags: ${args[@]}" >&2 exec nix-build "$nixExprInputDir/[% build.nixexprpath %]" -A '[% build.job.name %]' "${args[@]}" "${extraArgs[@]}"