summary refs log tree commit diff
path: root/pkgs/applications/virtualization/xen/packages.nix
diff options
context:
space:
mode:
authorxeji <xeji@cat3.de>2018-03-04 13:52:24 +0100
committerxeji <xeji@cat3.de>2018-03-07 22:38:45 +0100
commitfc790cb0f6c288496f30db88aba91913028e46e8 (patch)
tree5bc4e7884ff9201417e433833398ae43582e3145 /pkgs/applications/virtualization/xen/packages.nix
parentfbc0b8282e5bca77f9bfcdf27190a7a63d0a65df (diff)
downloadnixpkgs-fc790cb0f6c288496f30db88aba91913028e46e8.tar
nixpkgs-fc790cb0f6c288496f30db88aba91913028e46e8.tar.gz
nixpkgs-fc790cb0f6c288496f30db88aba91913028e46e8.tar.bz2
nixpkgs-fc790cb0f6c288496f30db88aba91913028e46e8.tar.lz
nixpkgs-fc790cb0f6c288496f30db88aba91913028e46e8.tar.xz
nixpkgs-fc790cb0f6c288496f30db88aba91913028e46e8.tar.zst
nixpkgs-fc790cb0f6c288496f30db88aba91913028e46e8.zip
xen: add v 4.10
Diffstat (limited to 'pkgs/applications/virtualization/xen/packages.nix')
-rw-r--r--pkgs/applications/virtualization/xen/packages.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/virtualization/xen/packages.nix b/pkgs/applications/virtualization/xen/packages.nix
index 4b5f15c8ff4..35f6febb712 100644
--- a/pkgs/applications/virtualization/xen/packages.nix
+++ b/pkgs/applications/virtualization/xen/packages.nix
@@ -103,6 +103,52 @@ rec {
     };
   };
 
+  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.
+      '';
+    };
+  };
+
   xen-vanilla = xen_4_5-vanilla;
   xen-slim = xen_4_5-slim;
   xen-light = xen_4_5-light;