Skip to content

For remote builds, don't copy the entire derivation closure #173

Closed

Description

@edolstra

When we do remote builds, the remote machine only needs the top-level derivation and its inputs. It doesn't need any other paths in the closure of the derivation. In particular, if x.drv depends on y.drv, and y.drv depends on big-source-file, we shouldn't copy y.drv and big-source-file. However, currently we have to copy those to preserve closure invariant. It would be nice if Nix had a mode to build directly from a .drv file.

Activity

  1. vcunat commented on Oct 26, 2013

    @vcunat
    Member

    This would need quite a major change in working with derivations, if I understand it right, wouldn't it?

  2. copumpkin commented on Sep 9, 2015

    @copumpkin
    Member

    Would changing the hashing scheme be particularly disruptive? It seems like it would invalidate old binary caches, but would otherwise be fairly harmless. Am I missing something?

  3. added a commit that references this issue on Sep 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions