Merge pull request #110707 from Infinisil/functionTo

Bring back `types.functionTo`
This commit is contained in:
Robert Hensing
2021-01-27 10:50:13 +01:00
committed by GitHub
15 changed files with 136 additions and 0 deletions
+1
View File
@@ -42,6 +42,7 @@ let
};
extraPackages = mkOption {
type = types.functionTo (types.listOf types.package);
default = self: [];
example = literalExample ''
haskellPackages: [
+1
View File
@@ -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 ]";