From 0acf71d85a84fa2cf03bfd5ccc8da9bdc1e4ebf2 Mon Sep 17 00:00:00 2001 From: Yiyu Zhou Date: Fri, 16 Oct 2026 01:35:54 -0700 Subject: [PATCH] asciidoc: replace deprecated --replace --- pkgs/by-name/as/asciidoc/package.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/as/asciidoc/package.nix b/pkgs/by-name/as/asciidoc/package.nix index 1c211ea0b1eb..6568f5319bc8 100644 --- a/pkgs/by-name/as/asciidoc/package.nix +++ b/pkgs/by-name/as/asciidoc/package.nix @@ -283,10 +283,10 @@ python3.pkgs.buildPythonApplication (finalAttrs: { ) + '' # Fix tests - for f in $(grep -R --files-with-matches "2002-11-25") ; do - substituteInPlace $f --replace "2002-11-25" "1980-01-02" - substituteInPlace $f --replace "00:37:42" "00:00:00" - done + substituteInPlace $(grep -R --files-with-matches "2002-11-25" tests/data) \ + --replace-fail "2002-11-25" "1980-01-02" + substituteInPlace $(grep -R --files-with-matches "00:37:42" tests/data) \ + --replace-fail "00:37:42" "00:00:00" '' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' # We want to use asciidoc from the build platform to build the documentation.