+6
-17
lib/strings.nix
+6
-17
lib/strings.nix
······-escapeC = list: replaceChars list (map (c: "\\x${ toLower (lib.toHexString (charToInt c))}") list);+escapeC = list: replaceStrings list (map (c: "\\x${ toLower (lib.toHexString (charToInt c))}") list);···+replaceChars = lib.warn "replaceChars is a deprecated alias of replaceStrings, replace usages of it with replaceStrings." builtins.replaceStrings;······
+3
-3
nixos/lib/systemd-lib.nix
+3
-3
nixos/lib/systemd-lib.nix
···unitNameType = types.strMatching "[a-zA-Z0-9@%:_.\\-]+[.](service|socket|device|mount|automount|swap|target|path|timer|scope|slice)";···
+3
-3
nixos/lib/utils.nix
+3
-3
nixos/lib/utils.nix
·········
+1
-1
nixos/modules/config/swap.nix
+1
-1
nixos/modules/config/swap.nix
···realDevice = if config.randomEncryption.enable then "/dev/mapper/${deviceName}" else config.device;
+1
-1
nixos/modules/programs/xfs_quota.nix
+1
-1
nixos/modules/programs/xfs_quota.nix
···
+1
-1
nixos/modules/services/mail/listmonk.nix
+1
-1
nixos/modules/services/mail/listmonk.nix
···# Escaping is done according to https://www.postgresql.org/docs/current/sql-syntax-lexical.html#SQL-SYNTAX-CONSTANTS
+3
-3
nixos/modules/services/networking/supplicant.nix
+3
-3
nixos/modules/services/networking/supplicant.nix
······${optionalString suppl.userControlled.enable "ctrl_interface=DIR=${suppl.userControlled.socketDir} GROUP=${suppl.userControlled.group}"}···${flip (concatMapStringsSep "\n") (filter (n: n!="WLAN" && n!="LAN" && n!="DBUS") (attrNames cfg)) (iface:-ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="${i}", TAG+="systemd", ENV{SYSTEMD_WANTS}+="supplicant-${replaceChars [" "] ["-"] iface}.service", TAG+="SUPPLICANT_ASSIGNED"''))}+ACTION=="add", SUBSYSTEM=="net", ENV{INTERFACE}=="${i}", TAG+="systemd", ENV{SYSTEMD_WANTS}+="supplicant-${replaceStrings [" "] ["-"] iface}.service", TAG+="SUPPLICANT_ASSIGNED"''))}
+1
-1
nixos/modules/services/networking/wireguard.nix
+1
-1
nixos/modules/services/networking/wireguard.nix
+1
-1
nixos/modules/system/boot/loader/grub/grub.nix
+1
-1
nixos/modules/system/boot/loader/grub/grub.nix
···efiSysMountPoint = if args.efiSysMountPoint == null then args.path else args.efiSysMountPoint;
+3
-3
nixos/modules/tasks/network-interfaces.nix
+3
-3
nixos/modules/tasks/network-interfaces.nix
···+(i: nameValuePair "net.ipv4.conf.${replaceStrings ["."] ["/"] i.name}.proxy_arp" i.proxyARP))···-ACTION=="add", SUBSYSTEM=="net", RUN+="${pkgs.procps}/bin/sysctl net.ipv6.conf.${replaceChars ["."] ["/"] i.name}.use_tempaddr=${val}"+ACTION=="add", SUBSYSTEM=="net", RUN+="${pkgs.procps}/bin/sysctl net.ipv6.conf.${replaceStrings ["."] ["/"] i.name}.use_tempaddr=${val}"
+1
-1
nixos/tests/installer.nix
+1
-1
nixos/tests/installer.nix
+2
-2
nixos/tests/prometheus-exporters.nix
+2
-2
nixos/tests/prometheus-exporters.nix
······
+1
-1
pkgs/applications/audio/munt/libmt32emu.nix
+1
-1
pkgs/applications/audio/munt/libmt32emu.nix
+1
-1
pkgs/applications/audio/munt/mt32emu-qt.nix
+1
-1
pkgs/applications/audio/munt/mt32emu-qt.nix
+1
-1
pkgs/applications/audio/munt/mt32emu-smf2wav.nix
+1
-1
pkgs/applications/audio/munt/mt32emu-smf2wav.nix
+1
-1
pkgs/applications/audio/qjackctl/default.nix
+1
-1
pkgs/applications/audio/qjackctl/default.nix
+1
-1
pkgs/applications/audio/roomeqwizard/default.nix
+1
-1
pkgs/applications/audio/roomeqwizard/default.nix
···-url = "https://www.roomeqwizard.com/installers/REW_linux_${lib.replaceChars [ "." ] [ "_" ] version}.sh";+url = "https://www.roomeqwizard.com/installers/REW_linux_${lib.replaceStrings [ "." ] [ "_" ] version}.sh";
+1
-1
pkgs/applications/editors/jetbrains/linux.nix
+1
-1
pkgs/applications/editors/jetbrains/linux.nix
···
+1
-1
pkgs/applications/emulators/atari800/default.nix
+1
-1
pkgs/applications/emulators/atari800/default.nix
+1
-1
pkgs/applications/emulators/desmume/default.nix
+1
-1
pkgs/applications/emulators/desmume/default.nix
···
+1
-1
pkgs/applications/emulators/retroarch/mkLibretroCore.nix
+1
-1
pkgs/applications/emulators/retroarch/mkLibretroCore.nix
···
+1
-1
pkgs/applications/misc/sweethome3d/default.nix
+1
-1
pkgs/applications/misc/sweethome3d/default.nix
+1
-1
pkgs/applications/misc/sweethome3d/editors.nix
+1
-1
pkgs/applications/misc/sweethome3d/editors.nix
+1
-1
pkgs/applications/science/math/weka/default.nix
+1
-1
pkgs/applications/science/math/weka/default.nix
···
+1
-1
pkgs/applications/science/misc/openmodelica/omlibrary/fakegit.nix
+1
-1
pkgs/applications/science/misc/openmodelica/omlibrary/fakegit.nix
+3
-3
pkgs/build-support/fetchmavenartifact/default.nix
+3
-3
pkgs/build-support/fetchmavenartifact/default.nix
···
+1
-1
pkgs/build-support/rust/build-rust-crate/configure-crate.nix
+1
-1
pkgs/build-support/rust/build-rust-crate/configure-crate.nix
···
+1
-1
pkgs/development/compilers/elm/makeDotElm.nix
+1
-1
pkgs/development/compilers/elm/makeDotElm.nix
···
+1
-1
pkgs/development/interpreters/gauche/default.nix
+1
-1
pkgs/development/interpreters/gauche/default.nix
+1
-1
pkgs/development/libraries/icu/base.nix
+1
-1
pkgs/development/libraries/icu/base.nix
···-url = "https://github.com/unicode-org/icu/releases/download/release-${lib.replaceChars [ "." ] [ "-" ] version}/icu4c-${lib.replaceChars [ "." ] [ "_" ] version}-src.tgz";+url = "https://github.com/unicode-org/icu/releases/download/release-${lib.replaceStrings [ "." ] [ "-" ] version}/icu4c-${lib.replaceStrings [ "." ] [ "_" ] version}-src.tgz";
+1
-1
pkgs/development/libraries/java/hsqldb/default.nix
+1
-1
pkgs/development/libraries/java/hsqldb/default.nix
···
+1
-1
pkgs/development/libraries/muparser/default.nix
+1
-1
pkgs/development/libraries/muparser/default.nix
+1
-1
pkgs/development/libraries/opendkim/default.nix
+1
-1
pkgs/development/libraries/opendkim/default.nix
···
+1
-1
pkgs/development/libraries/opensubdiv/default.nix
+1
-1
pkgs/development/libraries/opensubdiv/default.nix
+1
-1
pkgs/development/mobile/androidenv/build-app.nix
+1
-1
pkgs/development/mobile/androidenv/build-app.nix
···-name = lib.replaceChars [" "] [""] name; # Android APKs may contain white spaces in their names, but Nix store paths cannot+name = lib.replaceStrings [" "] [""] name; # Android APKs may contain white spaces in their names, but Nix store paths cannot
+1
-1
pkgs/development/mobile/titaniumenv/build-app.nix
+1
-1
pkgs/development/mobile/titaniumenv/build-app.nix
···
+1
-1
pkgs/development/mobile/xcodeenv/build-app.nix
+1
-1
pkgs/development/mobile/xcodeenv/build-app.nix
···extraArgs = removeAttrs args ([ "name" "scheme" "xcodeFlags" "release" "certificateFile" "certificatePassword" "provisioningProfile" "signMethod" "generateIPA" "generateXCArchive" "enableWirelessDistribution" "installURL" "bundleId" "version" ] ++ builtins.attrNames xcodewrapperFormalArgs);-name = lib.replaceChars [" "] [""] name; # iOS app names can contain spaces, but in the Nix store this is not allowed+name = lib.replaceStrings [" "] [""] name; # iOS app names can contain spaces, but in the Nix store this is not allowed
+1
-1
pkgs/development/mobile/xcodeenv/simulate-app.nix
+1
-1
pkgs/development/mobile/xcodeenv/simulate-app.nix
+1
-1
pkgs/development/python-modules/scikit-learn/default.nix
+1
-1
pkgs/development/python-modules/scikit-learn/default.nix
···
+2
-2
pkgs/development/tools/haskell/lambdabot/default.nix
+2
-2
pkgs/development/tools/haskell/lambdabot/default.nix
···
+1
-1
pkgs/development/tools/misc/segger-ozone/default.nix
+1
-1
pkgs/development/tools/misc/segger-ozone/default.nix
···-url = "https://www.segger.com/downloads/jlink/Ozone_Linux_V${(lib.replaceChars ["."] [""] version)}_x86_64.tgz";+url = "https://www.segger.com/downloads/jlink/Ozone_Linux_V${(lib.replaceStrings ["."] [""] version)}_x86_64.tgz";
+1
-1
pkgs/development/web/kcgi/default.nix
+1
-1
pkgs/development/web/kcgi/default.nix
+1
-1
pkgs/games/nexuiz/default.nix
+1
-1
pkgs/games/nexuiz/default.nix
+1
-1
pkgs/games/terraria-server/default.nix
+1
-1
pkgs/games/terraria-server/default.nix
···
+1
-1
pkgs/servers/invidious/default.nix
+1
-1
pkgs/servers/invidious/default.nix
···--replace ${lib.escapeShellArg commitTemplate} '"${lib.substring 0 7 versions.invidious.rev}"' \---replace ${lib.escapeShellArg versionTemplate} '"${lib.replaceChars ["-"] ["."] (lib.substring 9 10 version)}"' \+--replace ${lib.escapeShellArg versionTemplate} '"${lib.replaceStrings ["-"] ["."] (lib.substring 9 10 version)}"' \--replace ${lib.escapeShellArg assetCommitTemplate} '"${lib.substring 0 7 versions.invidious.rev}"'
+1
-1
pkgs/tools/typesetting/tex/pgf-tikz/pgf-1.x.nix
+1
-1
pkgs/tools/typesetting/tex/pgf-tikz/pgf-1.x.nix
···