From f440558acc76c2939cf5f0744c6669279b6351a0 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 17 Oct 2013 11:47:38 +0200 Subject: Don't show in stack traces Messages like while evaluating the attribute `outPath' at `/nix/store/212ngf4ph63mp6p1np2bapkfikpakfv7-nix-1.6/share/nix/corepkgs/derivation.nix:18:9': are redundant, because Nix already shows that it's evaluating a derivation: while instantiating the derivation named `firefox-24.0' at `/home/eelco/Dev/nixpkgs/pkgs/applications/networking/browsers/firefox/default.nix:131:5': while evaluating the derivation attribute `nativeBuildInputs' at `/home/eelco/Dev/nixpkgs/pkgs/stdenv/generic/default.nix:76:17': --- src/libexpr/primops.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libexpr/primops.cc') diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index a216fa7abde3..0585f5bbe089 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -1262,7 +1262,9 @@ void EvalState::createBaseEnv() /* Add a wrapper around the derivation primop that computes the `drvPath' and `outPath' attributes lazily. */ - evalFile(findFile("nix/derivation.nix"), v); + string path = findFile("nix/derivation.nix"); + sDerivationNix = symbols.create(path); + evalFile(path, v); addConstant("derivation", v); /* Now that we've added all primops, sort the `builtins' attribute -- cgit 1.4.1