pkgsets/python3: pkgs should be mergable function
This commit is contained in:
parent
eaf3bf45c5
commit
460d3f1d30
3 changed files with 32 additions and 21 deletions
|
@ -12,7 +12,7 @@ let
|
|||
serviceList = fn.makeOptionTypeList (toString ../services);
|
||||
pkgOption = pname: {
|
||||
name = pname;
|
||||
value = rec {
|
||||
value = {
|
||||
pkgwrap = mkOption {
|
||||
type =
|
||||
with types;
|
||||
|
@ -26,7 +26,10 @@ let
|
|||
'';
|
||||
};
|
||||
pkgs = mkOption {
|
||||
type = types.unspecified;
|
||||
type = types.oneOf [
|
||||
(types.listOf types.package)
|
||||
(types.functionTo (types.listOf types.package))
|
||||
];
|
||||
default = [ ];
|
||||
description = ''
|
||||
${pname} package list.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue