I’m having a problem with k3s not being able to find iscsiadm when mounting a CSI PVC and, before submitting a patch to upstream nixpkgs, I want to test wether that’s actually a real fix.
This happens because k3sRuntimeDeps are referenced via rec and overriding an attribute of a recursive set doesn’t propagate to its recursive references.
You’d either need to wrap k3s again or change the k3s derivation to make use of https://github.com/NixOS/nixpkgs/pull/119942 but I don’t know if buildGoModule supports that yet.
The proper fix would likely be to split the package into an unwrapped and wrapped variant. Then just target the wrapped version of the package to cheaply modify what’s available to it at runtime without incurring the cost of rebuilding k3s each time.