flake: Use types.str instead of types.string

types.string is deprecated.

Related: https://github.com/NixOS/nixpkgs/pull/66346
This commit is contained in:
Tony Zorman 2024-02-08 12:37:04 +01:00
parent c3acee78d0
commit 5cf87c75cd

View File

@ -46,7 +46,7 @@
enable = mkEnableOption "flake"; enable = mkEnableOption "flake";
prefix = mkOption { prefix = mkOption {
default = null; default = null;
type = nullOr string; type = nullOr str;
example = literalExpression "\"unstable\""; example = literalExpression "\"unstable\"";
description = '' description = ''
Specify a nested alternative <literal>pkgs</literal> by attrName. Specify a nested alternative <literal>pkgs</literal> by attrName.
@ -54,7 +54,7 @@
}; };
compiler = mkOption { compiler = mkOption {
default = null; default = null;
type = nullOr string; type = nullOr str;
example = literalExpression "\"ghc922\""; example = literalExpression "\"ghc922\"";
description = '' description = ''
Which compiler to build xmonad with. Which compiler to build xmonad with.