That’s a little odd, but I’m not entirely surprised!
There’s this logic in flyctl
:
for _, kv := range os.Environ() {
if strings.HasPrefix(kv, "NIXPACKS_") {
cmd.Env = append(cmd.Env, kv)
}
}
This should pass along any NIXPACKS_
prefixed env vars. I’m fairly sure this worked. There’s slightly more info here: Build images with nixpacks - #18 by jerome