
This script can be adapted and used in any channel:
https://codeberg.org/hako/Rosenthal/src/branch/trunk/pre-inst-env
And how I use them in my configurations:
https://codeberg.org/hako/Testament/src/commit/0eacd34ed6173b371115fc3cb8ee5157e4388772/pre-inst-env
(without using pre-inst-env scripts)
https://codeberg.org/hako/Testament/src/commit/9a8e39e32999c220f61fb4927c9893b0f5c7cb87/.envrc
#guix