Trouble linking libm

I am trying to make a derivation for this fantastic terminal emulator: Paulo Queiroz / Black Box · GitLab. Here are my sources: packages/raggesilver · main · Jonathan Dickinson / Nix · GitLab. You can see the error locally with nix build 'gitlab:jcdickinson/' --no-link.

It’s currently failing with this:

> /nix/store/...-2.38/bin/ld: /nix/store/...-cairo-1.16.0/lib/ undefined reference to `hypot@GLIBC_2.35'

As you can see in vte.nix, I have been trying to pass the -lm flag but that doesn’t seem to be working. Any ideas?

It’s a bug in cairo package. It complains about underlinked That should be linked against -lm instead.