makeImageFromDebDist: Add extraDebs arguments
This allows adding packages that are not part of the distribution, e.g.g extraDebs = [ (pkgs.fetchurl { name = "openjdk.deb"; url = http://ppa.launchpad.net/openjdk-r/ppa/ubuntu/pool/main/o/openjdk-8/openjdk-8-jdk-headless_8u111-b14-3~14.04.1_amd64.deb; sha256 = "1n5ibpkx9pjmc4nr052rls1yqbq7ckav2rabixjhd4yxbyhjl0ap"; }) ];
This commit is contained in:
parent
2799a94963
commit
63d7b6ee29
@ -750,6 +750,7 @@ rec {
|
|||||||
{ name, fullName, size ? 4096, urlPrefix
|
{ name, fullName, size ? 4096, urlPrefix
|
||||||
, packagesList ? "", packagesLists ? [packagesList]
|
, packagesList ? "", packagesLists ? [packagesList]
|
||||||
, packages, extraPackages ? [], postInstall ? ""
|
, packages, extraPackages ? [], postInstall ? ""
|
||||||
|
, extraDebs ? []
|
||||||
, QEMU_OPTS ? "", memSize ? 512 }:
|
, QEMU_OPTS ? "", memSize ? 512 }:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -760,7 +761,7 @@ rec {
|
|||||||
in
|
in
|
||||||
(fillDiskWithDebs {
|
(fillDiskWithDebs {
|
||||||
inherit name fullName size postInstall QEMU_OPTS memSize;
|
inherit name fullName size postInstall QEMU_OPTS memSize;
|
||||||
debs = import expr {inherit fetchurl;};
|
debs = import expr {inherit fetchurl;} ++ extraDebs;
|
||||||
}) // {inherit expr;};
|
}) // {inherit expr;};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user