How to install xargo in a nix flake?

Trying to build a rust package that requires xargo to be built. Wondering how to install xargo in a nix flake.

Some examples

From what I read, xargo “just” wraps cargo calls with some set environment variables and extra flags.

So from also reading why they do this, it seems as if what they do is usually considered nix’ task. So you might be able to run the cargo commands required the same way xargo would.