We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9dd1f1 commit 7af6178Copy full SHA for 7af6178
modules/nixos/ntfy-sh/default.nix
@@ -15,9 +15,9 @@ let
15
https = "https://";
16
in
17
if hasPrefix http str then
18
- substring (length http) (length str - length http) str
+ substring (stringLength http) (stringLength str - stringLength http) str
19
else if hasPrefix https str then
20
- substring (length https) (length str - length https) str
+ substring (stringLength https) (stringLength str - stringLength https) str
21
else
22
str;
23
@@ -54,14 +54,17 @@ let
54
escapeShellArg
55
foldl'
56
hasPrefix
57
- length
58
mkEnableOption
59
mkIf
60
mkOption
61
types
62
;
63
64
- inherit (builtins) readFile substring;
+ inherit (builtins)
+ readFile
65
+ stringLength
66
+ substring
67
+ ;
68
69
{
70
options.services.ntfy-sh = {
0 commit comments