Skip to content

Add outputHashMode argument attribute to bulitins that could support it #10480

Open
@Ericson2314

Description

An output outputHashMode argument attribute should be supported by all of

  • builtins.derivation
  • builtins.path
  • builtins.fetchTree
  • builtins.fetchurl

In order to specify which ContentAddressMethod is used for creating store paths.

Misc notes:

  • For builtins.derivation this is specifying that for a content addressed (fixed or floating) derivation output, for the other two, it is specifying that for the store path the builtin creates directly.

  • With lazy trees, builtins.fetchTree may not longer create a path. Perhaps paths created from it still turn into store objects, and it would affect those. Or maybe it's just better to separate concerns and not have this argument on builtins.fetchTree after all.

Metadata

Assignees

No one assigned

    Labels

    languageThe Nix expression language; parser, interpreter, primops, evaluation, etc

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions