Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pkgs: make package sets extensible #27

Merged
merged 1 commit into from
Dec 1, 2023
Merged

Conversation

minijackson
Copy link
Collaborator

this enables easier overriding of packages, like this:

nixpkgs.overlays = [
  (final: prev: {
    epnix = prev.epnix.extend (final: prev: {
      epics-base7 = prev.epics-base7.overrideAttrs (oldAttrs: {
        patches = oldAttrs.patches ++ [ ./my.patch ];
      });
    });
  })
];

cc @stephane-cea since you might use this feature for overriding epics-base. The old method should still work.

this enables easier overriding of packages, like this:

    nixpkgs.overlays = [
      (final: prev: {
        epnix = prev.epnix.extend (final: prev: {
          epics-base7 = prev.epics-base7.overrideAttrs (oldAttrs: {
            patches = oldAttrs.patches ++ [ ./my.patch ];
          });
        });
      })
    ];
@minijackson minijackson added the enhancement New feature or request label Nov 30, 2023
Copy link
Collaborator

@stephane-cea stephane-cea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me!

@minijackson minijackson merged commit f2b354f into master Dec 1, 2023
4 checks passed
@minijackson minijackson deleted the extensible-pkgs branch December 1, 2023 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants