nix: generalize propagated library attributes