query
On this page

makeImageFromDebDist

pkgs.vmTools.makeImageFromDebDist

Docs pulled from | This Revision | 14 minutes ago


Helper function that combines debClosureGenerator and fillDiskWithDebs to generate a disk image from a set of package names.


Noogle detected

Implementation

The following is the current implementation of this function.

makeImageFromDebDist =
    { name, fullName, size ? 4096, urlPrefix
    , packagesList ? "", packagesLists ? [packagesList]
    , packages, extraPackages ? [], postInstall ? ""
    , extraDebs ? [], createRootFS ? defaultCreateRootFS
    , QEMU_OPTS ? "", memSize ? 512, ... }@args:

    let
      expr = debClosureGenerator {
        inherit name packagesLists urlPrefix;
        packages = packages ++ extraPackages;
      };
    in
      (fillDiskWithDebs ({
        inherit name fullName size postInstall createRootFS QEMU_OPTS memSize;
        debs = import expr {inherit fetchurl;} ++ extraDebs;
      } // args)) // {inherit expr;};