···52 };
53 };
5455+ xen_4_15-vanilla = callPackage ./4.15.nix {
56+ meta = {
57+ description = "vanilla";
58+ longDescription = ''
59+ Vanilla version of Xen. Uses forks of Qemu and Seabios bundled
60+ with Xen. This gives vanilla experince, but wastes space and
61+ build time: typical NixOS setup that runs lots of VMs will
62+ build three different versions of Qemu when using this (two
63+ forks and upstream).
64+ '';
65+ };
66+ };
67+68+ xen_4_15-slim = xen_4_15-vanilla.override {
69+ withInternalQemu = false;
70+ withInternalTraditionalQemu = true;
71+ withInternalSeabios = false;
72+ withSeabios = true;
73+74+ meta = {
75+ description = "slim";
76+ longDescription = ''
77+ Slimmed-down version of Xen that reuses nixpkgs packages as
78+ much as possible. Different parts may get out of sync, but
79+ this builds faster and uses less space than vanilla. Use with
80+ `qemu_xen` from nixpkgs.
81+ '';
82+ };
83+ };
84+85+ xen_4_15-light = xen_4_15-vanilla.override {
86+ withInternalQemu = false;
87+ withInternalTraditionalQemu = false;
88+ withInternalSeabios = false;
89+ withSeabios = true;
90+91+ meta = {
92+ description = "light";
93+ longDescription = ''
94+ Slimmed-down version of Xen without `qemu-traditional` (you
95+ don't need it if you don't know what it is). Use with
96+ `qemu_xen-light` from nixpkgs.
97+ '';
98+ };
99+ };
100+101 xen-vanilla = xen_4_10-vanilla;
102 xen-slim = xen_4_10-slim;
103 xen-light = xen_4_10-light;
0104}