summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2023-07-04 13:00:04 +0200
committertv <tv@krebsco.de>2023-07-04 13:00:04 +0200
commit537fa18f762e28f2f475f9e00dedf71914a0c8f6 (patch)
treec10975a55a2def686c10068e9058d9a421b73791 /lib
parent6ad13152c49b86de002b519e9c8bb95085d540f1 (diff)
treewide: replaceChars -> replaceStrings
Diffstat (limited to 'lib')
-rw-r--r--lib/pure.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure.nix b/lib/pure.nix
index bb2d586f6..3329db022 100644
--- a/lib/pure.nix
+++ b/lib/pure.nix
@@ -26,7 +26,7 @@ let
krops = import ../submodules/krops/lib;
shell = import ./shell.nix { inherit (stockholm) lib; };
systemd = {
- encodeName = replaceChars ["/"] ["\\x2f"];
+ encodeName = replaceStrings ["/"] ["\\x2f"];
};
types = nixpkgs-lib.types // import ./types.nix { lib = stockholm.lib; };
uri = import ./uri.nix { inherit (stockholm) lib; };
@@ -79,7 +79,7 @@ let
string = toJSON x; # close enough
}.${type} or reject;
- indent = replaceChars ["\n"] ["\n "];
+ indent = replaceStrings ["\n"] ["\n "];
stripAttr = converge (filterAttrsRecursive (n: v: v != {} && v != null));