Skip to content

Add support for setting raw attrs #455

@srid

Description

@srid

In order to set a derivation attribute (like GIT_BIN) on a haskell package (like foo), we have no choice but to use the custom option:

          foo = {
            custom = drv: drv.overrideAttrs (oldAttrs: { } // {
              GIT_BIN = lib.getExe' pkgs.git "git";
            });
          };

But, there are two problems with this:

Proposal

Add a raw option, that allows setting arbitrary attributes from the given attrset. So the above would look like:

          foo = {
            raw = {
              GIT_BIN = lib.getExe' pkgs.git "git";
            };
          };

Implementation

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