Open worldofgeese opened 1 year ago
Hi @worldofgeese 👋
Currently, the nix packages are installed with nix-env --install *
(see here). I don't think that command accepts a complex package name, unless I'm mistaken. (nix-env doc --> https://nixos.org/manual/nix/stable/command-ref/nix-env.html#operation---install)
(google-cloud-sdk.withExtraComponents [google-cloud-sdk.components.gke-gcloud-auth-plugin])
💡 Probably, we could update the Nix Feature and if the option is embedded into a complex expression, we'd add the following commands. However, wondering how to automate google-cloud-sdk
ref to gcloud
nix-env -i google-cloud-sdk glcloud components install gke-gcloud-auth-plugin
In the meanwhile, you'd be able to currently resolve this with 👇
{
...
"features": {
"nix": {
"packages": "pdm,kompose,google-cloud-sdk"
}
},
"postCreateCommand": "gcloud components install gke-gcloud-auth-plugin"
}
GIven
Building the Dev Container image will fail with the following error:
Of course, the package expression here is enclosed so this appears to be a bug in how the Nix feature handles any package declaration more complex than simple package names.