wrapper-manager icon indicating copy to clipboard operation
wrapper-manager copied to clipboard

.override on wrappers

Open iynaix opened this issue 5 months ago • 3 comments

Only overrideAttrs can be called on the wrapped package, but not override. I found #25, but I don't know if this is the same issue.

iynaix avatar Sep 26 '25 03:09 iynaix

What do you want to use .override for? We are not using callPackage so there's nothing to override.

viperML avatar Sep 26 '25 06:09 viperML

I was trying to use a wrapper on pkgs.hyprland, supplying a --config; but programs.hyprland.enable calls override on the package here: https://github.com/NixOS/nixpkgs/blob/3bcb750c0ff84e838c5821bc7d76e00506adef3d/nixos/modules/programs/wayland/lib.nix#L10

iynaix avatar Sep 26 '25 06:09 iynaix

Ah I see, so this would be to passhtrough .override into basePackage, I can look into it.

viperML avatar Sep 26 '25 07:09 viperML