New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Init Centos 7.4 vmTools diskImage #32278
Conversation
This commit adds the CentOS 7.4 base image from the CentOS mirror, for use with building RPMs or evaluating Nix expressions in a CentOS image. When CentOS 7.5 comes out, I will swap this URL to the permanently vaulted image.
name = "centos-7.4-x86_64"; | ||
fullName = "CentOS 7.4 (x86_64)"; | ||
# N.B. Switch to vault.centos.org when the next release comes out | ||
urlPrefix = http://mirror.centos.org/centos-7/7.4.1708/os/x86_64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure what the NixPkg convention is for handling these sorts of things is. When CentOS > 7.4 comes out, this URL is going to be moved to their permanent vault; and even though this upstream image is immutable they haven't put it in the vault yet, because it's the most recent snapshot release.
When it does move I can update the pkg expression, but older checkouts of NixPkgs will be broken. Is that an OK compromise or should we let this PR sit until we have a vaulted url in ~1 year?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually made this change as well during the weekend.
I think it is fine to keep this url because a) its the only option currently and b) urls sometimes simply break and need to be replaced. We do not and can not expects resources to be forever available.
name = "centos-7.4-x86_64"; | ||
fullName = "CentOS 7.4 (x86_64)"; | ||
# N.B. Switch to vault.centos.org when the next release comes out | ||
urlPrefix = http://mirror.centos.org/centos-7/7.4.1708/os/x86_64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I actually made this change as well during the weekend.
I think it is fine to keep this url because a) its the only option currently and b) urls sometimes simply break and need to be replaced. We do not and can not expects resources to be forever available.
This commit adds the CentOS 7.4 base image from the CentOS mirror, for use with
building RPMs or evaluating Nix expressions in a CentOS image.
When CentOS 7.5 comes out, I will swap this URL to the permanently vaulted image.
Motivation for this change
Would like to get Nix tools building on the latest stable CentOS release for use in enterprise environments.
See related:
#31801
NixOS/nix#1141
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)