Skip to content

overrideDerivation doesn't work for setting separateDebugInfo #10721

@edolstra

Description

@edolstra

To enable debug info for a package that doesn't have it, one might naively expect this work:

  nixpkgs.config.packageOverrides = pkgs: {
    hello = overrideDerivation pkgs.hello (attrs: {
      separateDebugInfo = true;
    });
  };

However, this doesn't work because separateDebugInfo affects mkDerivation, not derivation. So we'd need some way to re-call the original mkDerivation invocation with new arguments.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions