match -> builtins.match

This commit is contained in:
niten 2022-05-30 16:12:58 -07:00
parent 3810d43bbb
commit 2b944a013f
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@
with lib; with lib;
let let
isSymbol = str: isNull (match "^'.+" str); isSymbol = str: isNull (builtins.match "^'.+" str);
stripQuote = head (match "^'(.+)"); stripQuote = head (builtins.match "^'(.+)");
parseStr = str: if (isSymbol str) then (stripQuote str) else ''"${str}"''; parseStr = str: if (isSymbol str) then (stripQuote str) else ''"${str}"'';
join-str = concatStringsSep " "; join-str = concatStringsSep " ";