Inheriting patches from nixpkgs is brittle and just a shortcut. Instead patch the AST of the file that looks up the library paths which should be much less brittle over time.