From b1ec502c1e9c4909b3e9b0b40f2123353270eae0 Mon Sep 17 00:00:00 2001 From: Benjamin Hipple Date: Mon, 27 Nov 2017 22:06:58 -0500 Subject: [PATCH] Init Centos 7.4 vmTools diskImage 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. --- pkgs/build-support/vm/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/build-support/vm/default.nix b/pkgs/build-support/vm/default.nix index fdd7c2013b4..baaa150b5a0 100644 --- a/pkgs/build-support/vm/default.nix +++ b/pkgs/build-support/vm/default.nix @@ -1322,6 +1322,19 @@ rec { archs = ["noarch" "x86_64"]; packages = commonCentOSPackages ++ [ "procps-ng" ]; }; + + centos74x86_64 = rec { + 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; + packagesList = fetchurl { + url = "${urlPrefix}/repodata/b686d3a0f337323e656d9387b9a76ce6808b26255fc3a138b1a87d3b1cb95ed5-primary.xml.gz"; + sha256 = "1mayp4f3nzd8n4wa3hsz4lk8p076djkvk1wkdmjkwcipyfhd71mn"; + }; + archs = ["noarch" "x86_64"]; + packages = commonCentOSPackages ++ [ "procps-ng" ]; + }; };