I had a chat with the ngspice devs (and finally lu...
# analog-design
s
I had a chat with the ngspice devs (and finally lurked in the source code) and the conclusion is that ngspice does not look at any variable (environment or own vars) when expanding .lib/.include.. so this task can not be delegated to the simulator