Cannot create symlink in "/usr/share/libdrm": existing file in the way

Getting an error about the /usr/share/libdrm directory already existing in the snap namespace. I’m guessing this is now provided by default from the core22 snap. What’s the route for a snap that builds libdrm from source to prevent being tied to the jammy repo version? An example of this is the nvtop snap: https://github.com/Syllo/nvtop/blob/a44ce91501f37915ebe14d11e8f677e736626ff6/snap/snapcraft.yaml#L34