Skip to content

Commit

Permalink
Merge pull request #36794 from xeji/deprecate-xen-4-5-on-18-03
Browse files Browse the repository at this point in the history
xenPackages: deprecate Xen 4.5 on 18.03, security support ended
  • Loading branch information
7c6f434c authored Mar 11, 2018
2 parents 2f93afb + af64b8d commit b6bd998
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
4 changes: 4 additions & 0 deletions pkgs/applications/virtualization/xen/4.5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ in
callPackage (import ./generic.nix (rec {
version = "4.5.5";

meta = {
knownVulnerabilities = [ "Security support ended in January 2018" ];
};

src = fetchurl {
url = "https://downloads.xenproject.org/release/xen/${version}/xen-${version}.tar.gz";
sha256 = "1y74ms4yc3znf8jc3fgyq94va2y0pf7jh8m9pfqnpgklywqnw8g2";
Expand Down
3 changes: 2 additions & 1 deletion pkgs/applications/virtualization/xen/generic.nix
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ stdenv.mkDerivation (rec {
done
'';

# TODO(@oxij): Stop referencing args here
meta = {
homepage = http://www.xen.org/;
description = "Xen hypervisor and related components"
Expand All @@ -231,5 +232,5 @@ stdenv.mkDerivation (rec {
+ withXenfiles (name: x: ''* ${name}: ${x.meta.description or "(No description)"}.'');
platforms = [ "x86_64-linux" ];
maintainers = with stdenv.lib.maintainers; [ eelco tstrobel oxij ];
};
} // (config.meta or {});
} // removeAttrs config [ "xenfiles" "buildInputs" "patches" "postPatch" "meta" ])
8 changes: 4 additions & 4 deletions pkgs/applications/virtualization/xen/packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, stdenv, overrideCC, gcc49
}:

# TODO on new Xen version: generalize this to generate [vanilla slim
# TODO(@oxij) on new Xen version: generalize this to generate [vanilla slim
# light] for each ./<version>.nix.

rec {
Expand Down Expand Up @@ -103,8 +103,8 @@ rec {
};
};

xen-vanilla = xen_4_5-vanilla;
xen-slim = xen_4_5-slim;
xen-light = xen_4_5-light;
xen-vanilla = xen_4_8-vanilla;
xen-slim = xen_4_8-slim;
xen-light = xen_4_8-light;

}
7 changes: 4 additions & 3 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18337,9 +18337,10 @@ with pkgs;

xenPackages = recurseIntoAttrs (callPackage ../applications/virtualization/xen/packages.nix {});

xen = xenPackages.xen_4_5-vanilla;
xen-slim = xenPackages.xen_4_5-slim;
xen-light = xenPackages.xen_4_5-light;
xen = xenPackages.xen-vanilla;
xen-slim = xenPackages.xen-slim;
xen-light = xenPackages.xen-light;

xen_4_8 = xenPackages.xen_4_8-vanilla;
xen_4_8-slim = xenPackages.xen_4_8-slim;
xen_4_8-light = xenPackages.xen_4_8-light;
Expand Down

0 comments on commit b6bd998

Please sign in to comment.