LR is closed source program and no one knows what it does internally, so you won’t be able to replicate the same effect the same way as the lr color calibration does.
In darktable there is also way how to modify primary colors - it’s the channel mixer part of the color calibration module (RGB tabs).
https://docs.darktable.org/usermanual/3.8/en/module-reference/processing-modules/color-calibration/
You may need to find own way to achieve similar results.
If you are looking for free software which has the same controls for primaries as LR, there is channel mixer in ART. Just don’t expect the same results.
https://discuss.pixls.us/t/rgb-primary-corrections