Merge pull request #110707 from Infinisil/functionTo
Bring back `types.functionTo`
This commit is contained in:
@@ -42,6 +42,7 @@ let
|
||||
};
|
||||
|
||||
extraPackages = mkOption {
|
||||
type = types.functionTo (types.listOf types.package);
|
||||
default = self: [];
|
||||
example = literalExample ''
|
||||
haskellPackages: [
|
||||
|
||||
@@ -21,6 +21,7 @@ in
|
||||
};
|
||||
|
||||
extraPackages = mkOption {
|
||||
type = types.functionTo (types.listOf types.package);
|
||||
default = self: [];
|
||||
example = literalExample ''
|
||||
haskellPackages: [
|
||||
|
||||
@@ -66,6 +66,7 @@ in
|
||||
};
|
||||
|
||||
plugins = mkOption {
|
||||
type = types.functionTo (types.listOf types.package);
|
||||
default = plugins: [];
|
||||
defaultText = "plugins: []";
|
||||
example = literalExample "plugins: with plugins; [ themeify stlviewer ]";
|
||||
|
||||
Reference in New Issue
Block a user