I have a compiler which requires a license-server to be accessible so it can work. To be clear, I have packaged the compiler successfully, this is about shipping libraries produced by that compiler.
Doing this has two problems: (1) requiring an environment variable LICENSE_FILE=port@server which I don’t want in the package, and (2) having the network connection to access it.
I can kind-of bypass by having the environment variable be part of the package source, but I would rather use something like “impureEnvVars”, which I see are only for fixed-output derivations, whereas here I am trying to package a library.
Even when setting the environment variable, it is unable to access the license server. I believe networking is turned off for non-fixed-output derivations?