2016-09-01 02:51:09 +01:00
|
|
|
{ callPackage
|
|
|
|
, stdenv, overrideCC, gcc49
|
|
|
|
}:
|
|
|
|
|
2018-03-10 20:16:02 +00:00
|
|
|
# TODO(@oxij) on new Xen version: generalize this to generate [vanilla slim
|
2016-09-01 02:51:09 +01:00
|
|
|
# light] for each ./<version>.nix.
|
|
|
|
|
|
|
|
rec {
|
|
|
|
|
|
|
|
xen_4_5-vanilla = callPackage ./4.5.nix {
|
|
|
|
# At the very least included seabios and etherboot need gcc49,
|
|
|
|
# so we have to build all of it with gcc49.
|
|
|
|
stdenv = overrideCC stdenv gcc49;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "vanilla";
|
|
|
|
longDescription = ''
|
|
|
|
Vanilla version of Xen. Uses forks of Qemu and Seabios bundled
|
|
|
|
with Xen. This gives vanilla experince, but wastes space and
|
|
|
|
build time: typical NixOS setup that runs lots of VMs will
|
|
|
|
build three different versions of Qemu when using this (two
|
|
|
|
forks and upstream).
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xen_4_5-slim = xen_4_5-vanilla.override {
|
|
|
|
withInternalQemu = false;
|
|
|
|
withInternalTraditionalQemu = true;
|
|
|
|
withInternalSeabios = false;
|
|
|
|
withSeabios = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "slim";
|
|
|
|
longDescription = ''
|
|
|
|
Slimmed-down version of Xen that reuses nixpkgs packages as
|
|
|
|
much as possible. Different parts may get out of sync, but
|
|
|
|
this builds faster and uses less space than vanilla. Use with
|
|
|
|
`qemu_xen` from nixpkgs.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xen_4_5-light = xen_4_5-vanilla.override {
|
|
|
|
withInternalQemu = false;
|
|
|
|
withInternalTraditionalQemu = false;
|
|
|
|
withInternalSeabios = false;
|
|
|
|
withSeabios = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "light";
|
|
|
|
longDescription = ''
|
|
|
|
Slimmed-down version of Xen without `qemu-traditional` (you
|
|
|
|
don't need it if you don't know what it is). Use with
|
|
|
|
`qemu_xen-light` from nixpkgs.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-05-11 11:12:47 +01:00
|
|
|
xen_4_8-vanilla = callPackage ./4.8.nix {
|
|
|
|
meta = {
|
|
|
|
description = "vanilla";
|
|
|
|
longDescription = ''
|
|
|
|
Vanilla version of Xen. Uses forks of Qemu and Seabios bundled
|
|
|
|
with Xen. This gives vanilla experince, but wastes space and
|
|
|
|
build time: typical NixOS setup that runs lots of VMs will
|
|
|
|
build three different versions of Qemu when using this (two
|
|
|
|
forks and upstream).
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xen_4_8-slim = xen_4_8-vanilla.override {
|
|
|
|
withInternalQemu = false;
|
|
|
|
withInternalTraditionalQemu = true;
|
|
|
|
withInternalSeabios = false;
|
|
|
|
withSeabios = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "slim";
|
|
|
|
longDescription = ''
|
|
|
|
Slimmed-down version of Xen that reuses nixpkgs packages as
|
|
|
|
much as possible. Different parts may get out of sync, but
|
|
|
|
this builds faster and uses less space than vanilla. Use with
|
|
|
|
`qemu_xen` from nixpkgs.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xen_4_8-light = xen_4_8-vanilla.override {
|
|
|
|
withInternalQemu = false;
|
|
|
|
withInternalTraditionalQemu = false;
|
|
|
|
withInternalSeabios = false;
|
|
|
|
withSeabios = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "light";
|
|
|
|
longDescription = ''
|
|
|
|
Slimmed-down version of Xen without `qemu-traditional` (you
|
|
|
|
don't need it if you don't know what it is). Use with
|
|
|
|
`qemu_xen-light` from nixpkgs.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-03-04 12:52:24 +00:00
|
|
|
xen_4_10-vanilla = callPackage ./4.10.nix {
|
|
|
|
meta = {
|
|
|
|
description = "vanilla";
|
|
|
|
longDescription = ''
|
|
|
|
Vanilla version of Xen. Uses forks of Qemu and Seabios bundled
|
|
|
|
with Xen. This gives vanilla experince, but wastes space and
|
|
|
|
build time: typical NixOS setup that runs lots of VMs will
|
|
|
|
build three different versions of Qemu when using this (two
|
|
|
|
forks and upstream).
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xen_4_10-slim = xen_4_10-vanilla.override {
|
|
|
|
withInternalQemu = false;
|
|
|
|
withInternalTraditionalQemu = true;
|
|
|
|
withInternalSeabios = false;
|
|
|
|
withSeabios = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "slim";
|
|
|
|
longDescription = ''
|
|
|
|
Slimmed-down version of Xen that reuses nixpkgs packages as
|
|
|
|
much as possible. Different parts may get out of sync, but
|
|
|
|
this builds faster and uses less space than vanilla. Use with
|
|
|
|
`qemu_xen` from nixpkgs.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
xen_4_10-light = xen_4_10-vanilla.override {
|
|
|
|
withInternalQemu = false;
|
|
|
|
withInternalTraditionalQemu = false;
|
|
|
|
withInternalSeabios = false;
|
|
|
|
withSeabios = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "light";
|
|
|
|
longDescription = ''
|
|
|
|
Slimmed-down version of Xen without `qemu-traditional` (you
|
|
|
|
don't need it if you don't know what it is). Use with
|
|
|
|
`qemu_xen-light` from nixpkgs.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-03-10 20:16:02 +00:00
|
|
|
xen-vanilla = xen_4_8-vanilla;
|
|
|
|
xen-slim = xen_4_8-slim;
|
|
|
|
xen-light = xen_4_8-light;
|
2016-09-01 02:51:09 +01:00
|
|
|
|
|
|
|
}
|