diff --git a/pkgs/applications/science/logic/klee/default.nix b/pkgs/applications/science/logic/klee/default.nix index 54c9cdc30c806..fd618fec2026c 100644 --- a/pkgs/applications/science/logic/klee/default.nix +++ b/pkgs/applications/science/logic/klee/default.nix @@ -133,7 +133,7 @@ llvmPackages.stdenv.mkDerivation rec { updateScript = nix-update-script { extraArgs = [ "--version-regex" - "v(\d\.\d)" + "v(\\d\\.\\d)" ]; }; # Let the user access the chosen uClibc outside the derivation. diff --git a/pkgs/applications/science/logic/klee/klee-uclibc.nix b/pkgs/applications/science/logic/klee/klee-uclibc.nix index 61cb5892edd5f..695ff369d96c1 100644 --- a/pkgs/applications/science/logic/klee/klee-uclibc.nix +++ b/pkgs/applications/science/logic/klee/klee-uclibc.nix @@ -99,7 +99,7 @@ llvmPackages.stdenv.mkDerivation rec { passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex" - "v(\d\.\d)" + "v(\\d\\.\\d)" ]; }; diff --git a/pkgs/build-support/trivial-builders/default.nix b/pkgs/build-support/trivial-builders/default.nix index 12a40a2d96023..dbf0180ed95c0 100644 --- a/pkgs/build-support/trivial-builders/default.nix +++ b/pkgs/build-support/trivial-builders/default.nix @@ -719,7 +719,7 @@ rec { (name: value: { inherit value; - name = lib.head (builtins.match "${builtins.storeDir}/[${nixHashChars}]+-(.*)\.drv" name); + name = lib.head (builtins.match "${builtins.storeDir}/[${nixHashChars}]+-(.*)\\.drv" name); }) derivations; # The syntax of output paths differs between outputs named `out` diff --git a/pkgs/by-name/av/av1an-unwrapped/package.nix b/pkgs/by-name/av/av1an-unwrapped/package.nix index 7c5280af9fa9a..e89f7116e118a 100644 --- a/pkgs/by-name/av/av1an-unwrapped/package.nix +++ b/pkgs/by-name/av/av1an-unwrapped/package.nix @@ -44,7 +44,7 @@ rustPlatform.buildRustPackage rec { updateScript = nix-update-script { extraArgs = [ "--version-regex" - "'^(\d*\.\d*\.\d*)$'" + "'^(\\d*\\.\\d*\\.\\d*)$'" ]; }; }; diff --git a/pkgs/by-name/aw/awscli2/package.nix b/pkgs/by-name/aw/awscli2/package.nix index e669d112a340e..bf13e3bcf8d68 100644 --- a/pkgs/by-name/aw/awscli2/package.nix +++ b/pkgs/by-name/aw/awscli2/package.nix @@ -171,7 +171,7 @@ py.pkgs.buildPythonApplication rec { # Excludes 1.x versions from the Github tags list extraArgs = [ "--version-regex" - "^(2\.(.*))" + "^(2\\.(.*))" ]; }; tests.version = testers.testVersion { diff --git a/pkgs/by-name/ci/circt/package.nix b/pkgs/by-name/ci/circt/package.nix index d8865be0b7542..9ea6dad79b341 100644 --- a/pkgs/by-name/ci/circt/package.nix +++ b/pkgs/by-name/ci/circt/package.nix @@ -63,17 +63,17 @@ stdenv.mkDerivation rec { # https://github.com/NixOS/nixpkgs/issues/214945 discusses this issue. # # As a temporary fix, we disabled these tests when using clang stdenv - lib.optionals stdenv.cc.isClang [ "CIRCT :: Target/ExportSystemC/.*\.mlir" ] + lib.optionals stdenv.cc.isClang [ "CIRCT :: Target/ExportSystemC/.*\\.mlir" ] # Disable some tests on x86_64-darwin ++ lib.optionals (stdenv.hostPlatform.system == "x86_64-darwin") [ # These test seem to pass on hydra (rosetta) but not on x86_64-darwin machines - "CIRCT :: Target/ExportSMTLIB/.*\.mlir" - "CIRCT :: circt-bmc/.*\.mlir" + "CIRCT :: Target/ExportSMTLIB/.*\\.mlir" + "CIRCT :: circt-bmc/.*\\.mlir" # These tests were having issues on rosetta - "CIRCT :: Dialect/.*/Reduction/.*\.mlir" - "CIRCT :: Dialect/SMT/.*\.mlir" - "CIRCT :: circt-as-dis/.*\.mlir" - "CIRCT :: circt-reduce/.*\.mlir" + "CIRCT :: Dialect/.*/Reduction/.*\\.mlir" + "CIRCT :: Dialect/SMT/.*\\.mlir" + "CIRCT :: circt-as-dis/.*\\.mlir" + "CIRCT :: circt-reduce/.*\\.mlir" "CIRCT :: circt-test/basic.mlir" ]; in diff --git a/pkgs/by-name/du/duplicity/package.nix b/pkgs/by-name/du/duplicity/package.nix index f821a73aa2bf4..6417b0b8f1db3 100644 --- a/pkgs/by-name/du/duplicity/package.nix +++ b/pkgs/by-name/du/duplicity/package.nix @@ -156,7 +156,7 @@ let updateScript = nix-update-script { extraArgs = [ "--version-regex" - "rel\.(.*)" + "rel\\.(.*)" ]; }; diff --git a/pkgs/by-name/fo/forgejo/lts.nix b/pkgs/by-name/fo/forgejo/lts.nix index 19c62f3889863..3b7a8f5e70958 100644 --- a/pkgs/by-name/fo/forgejo/lts.nix +++ b/pkgs/by-name/fo/forgejo/lts.nix @@ -6,7 +6,7 @@ import ./generic.nix { lts = true; nixUpdateExtraArgs = [ "--version-regex" - "v(7\.[0-9.]+)" + "v(7\\.[0-9.]+)" "--override-filename" "pkgs/by-name/fo/forgejo/lts.nix" ]; diff --git a/pkgs/by-name/ma/mattermost/package.nix b/pkgs/by-name/ma/mattermost/package.nix index 212e6aab9e18e..8e66e0ebe11d7 100644 --- a/pkgs/by-name/ma/mattermost/package.nix +++ b/pkgs/by-name/ma/mattermost/package.nix @@ -73,7 +73,7 @@ buildGoModule rec { passthru = { updateScript = nix-update-script { - extraArgs = [ "--version-regex" "^v(9\.11\.[0-9]+)$" ]; + extraArgs = [ "--version-regex" "^v(9\\.11\\.[0-9]+)$" ]; }; tests.mattermost = nixosTests.mattermost; }; diff --git a/pkgs/by-name/pk/pkcs11-provider/package.nix b/pkgs/by-name/pk/pkcs11-provider/package.nix index f27bd11a934d9..70f3f586cc3fb 100644 --- a/pkgs/by-name/pk/pkcs11-provider/package.nix +++ b/pkgs/by-name/pk/pkcs11-provider/package.nix @@ -80,7 +80,7 @@ stdenv.mkDerivation rec { passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex" - "v(\d\.\d)" + "v(\\d\\.\\d)" ]; }; diff --git a/pkgs/by-name/re/renode-unstable/package.nix b/pkgs/by-name/re/renode-unstable/package.nix index 071188f7be211..f9e1b4259040b 100644 --- a/pkgs/by-name/re/renode-unstable/package.nix +++ b/pkgs/by-name/re/renode-unstable/package.nix @@ -16,7 +16,7 @@ renode.overrideAttrs ( passthru.updateScript = let - versionRegex = "[0-9\.\+]+[^\+]*."; + versionRegex = "[0-9\\.\\+]+[^\\+]*."; in writeScript "${finalAttrs.pname}-updater" '' #!/usr/bin/env nix-shell diff --git a/pkgs/by-name/te/teams/package.nix b/pkgs/by-name/te/teams/package.nix index b1f8771a431df..6e52f351c7048 100644 --- a/pkgs/by-name/te/teams/package.nix +++ b/pkgs/by-name/te/teams/package.nix @@ -51,7 +51,7 @@ stdenv.mkDerivation { zcat < Teams_osx_app.pkg/Payload | cpio -i ''; - sourceRoot = "Microsoft\ Teams.app"; + sourceRoot = "Microsoft\\ Teams.app"; dontPatch = true; dontConfigure = true; dontBuild = true; diff --git a/pkgs/by-name/tu/turbo-unwrapped/package.nix b/pkgs/by-name/tu/turbo-unwrapped/package.nix index 36e68b687da2e..e91fb9a2603e1 100644 --- a/pkgs/by-name/tu/turbo-unwrapped/package.nix +++ b/pkgs/by-name/tu/turbo-unwrapped/package.nix @@ -64,7 +64,7 @@ rustPlatform.buildRustPackage rec { updateScript = nix-update-script { extraArgs = [ "--version-regex" - "'v(\d+\.\d+\.\d+)'" + "'v(\\d+\\.\\d+\\.\\d+)'" ]; }; }; diff --git a/pkgs/by-name/uu/uuu/package.nix b/pkgs/by-name/uu/uuu/package.nix index 2a6e5e7452428..11ca0e1989674 100644 --- a/pkgs/by-name/uu/uuu/package.nix +++ b/pkgs/by-name/uu/uuu/package.nix @@ -30,7 +30,7 @@ stdenv.mkDerivation (finalAttrs: { passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex" - "uuu_\([0-9.]+\)" + "uuu_\\([0-9.]+\\)" ]; }; diff --git a/pkgs/by-name/vs/vscode-js-debug/package.nix b/pkgs/by-name/vs/vscode-js-debug/package.nix index 8f41b3c594e40..dfb0c4c1f23e0 100644 --- a/pkgs/by-name/vs/vscode-js-debug/package.nix +++ b/pkgs/by-name/vs/vscode-js-debug/package.nix @@ -59,7 +59,7 @@ buildNpmPackage rec { passthru.updateScript = nix-update-script { extraArgs = [ "--version-regex" - "v((?!\d{4}\.\d\.\d{3}).*)" + "v((?!\\d{4}\\.\\d\\.\\d{3}).*)" ]; }; diff --git a/pkgs/pkgs-lib/formats/hocon/test/comprehensive/default.nix b/pkgs/pkgs-lib/formats/hocon/test/comprehensive/default.nix index 14b708140eb5e..c184b6bc72e43 100644 --- a/pkgs/pkgs-lib/formats/hocon/test/comprehensive/default.nix +++ b/pkgs/pkgs-lib/formats/hocon/test/comprehensive/default.nix @@ -37,7 +37,7 @@ let "b" ] ]; - nasty_string = "\"@\n\\\t^*\b\f\n\0\";'''$"; + nasty_string = "\"@\n\\\t^*bf\n0\";'''$"; "misc attrs" = { x = 1; diff --git a/pkgs/pkgs-lib/formats/java-properties/test/default.nix b/pkgs/pkgs-lib/formats/java-properties/test/default.nix index fdc589d2c1cd4..2ea787a90341b 100644 --- a/pkgs/pkgs-lib/formats/java-properties/test/default.nix +++ b/pkgs/pkgs-lib/formats/java-properties/test/default.nix @@ -73,7 +73,7 @@ stdenv.mkDerivation { ); src = lib.sourceByRegex ./. [ - ".*\.java" + ".*\\.java" ]; # On Linux, this can be C.UTF-8, but darwin + zulu requires en_US.UTF-8 LANG = "en_US.UTF-8"; diff --git a/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/default.nix b/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/default.nix index cb331ccf4f0fe..6e4277da68a80 100644 --- a/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/default.nix +++ b/pkgs/pkgs-lib/formats/libconfig/test/comprehensive/default.nix @@ -58,7 +58,7 @@ let 1 ]) ]; - nasty_string = "\"@\n\\\t^*\b\f\n\0\";'''$"; + nasty_string = "\"@\n\\\t^*bf\n0\";'''$"; weirderTypes = { _includes = [ include_file ];