Skip to content

Commit 7af6178

Browse files
committed
develop: nix is hard...
1 parent b9dd1f1 commit 7af6178

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

modules/nixos/ntfy-sh/default.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ let
1515
https = "https://";
1616
in
1717
if hasPrefix http str then
18-
substring (length http) (length str - length http) str
18+
substring (stringLength http) (stringLength str - stringLength http) str
1919
else if hasPrefix https str then
20-
substring (length https) (length str - length https) str
20+
substring (stringLength https) (stringLength str - stringLength https) str
2121
else
2222
str;
2323

@@ -54,14 +54,17 @@ let
5454
escapeShellArg
5555
foldl'
5656
hasPrefix
57-
length
5857
mkEnableOption
5958
mkIf
6059
mkOption
6160
types
6261
;
6362

64-
inherit (builtins) readFile substring;
63+
inherit (builtins)
64+
readFile
65+
stringLength
66+
substring
67+
;
6568
in
6669
{
6770
options.services.ntfy-sh = {

0 commit comments

Comments
 (0)