Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Upstream the listing of nix evaluation dependencies to nix #77

Open
Profpatsch opened this issue May 9, 2019 · 1 comment
Open

Upstream the listing of nix evaluation dependencies to nix #77

Profpatsch opened this issue May 9, 2019 · 1 comment
Labels
feature request Request for new functionality tracking Tracking an issue in an upstream repo

Comments

@Profpatsch
Copy link
Collaborator

lorri currently magically instrumentalizes every nix build it runs so that it can read the transitive dependency of all required nix source files and add them to its file watcher. This is brittle, as seen in #58.

Nix should instead be able to write structured information of which files it reads at evaluation, e.g. with an option like --write-evaluation-info=<output-file> or similar.

There is multiple use-cases for such an option, one is lorri of course, but another could be #64. The nix bazel integration, rules_nixpkgs does something similar as lorri to find out which files nix needs for evaluation and achieve better hermeticity.

@Profpatsch Profpatsch added tracking Tracking an issue in an upstream repo feature request Request for new functionality labels May 9, 2019
@xzfc
Copy link

xzfc commented Jan 8, 2020

Related: someone started implementing nix-build --record a few years ago, but the PR was not got merged.
NixOS/nix#709

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request Request for new functionality tracking Tracking an issue in an upstream repo
Projects
None yet
Development

No branches or pull requests

2 participants