From 052431ce984d7eab03f41c83d2b4f5bf4affe883 Mon Sep 17 00:00:00 2001 From: Daniel Baker Date: Wed, 6 Nov 2024 14:08:28 -0800 Subject: [PATCH] doc: replace references to `--replace` for the `substitute` command The `--replace` argument for `substitute` and `substituteInPlace` was deprecated in e07a2fab7f065c3fa084027f07dcf8cafbd19394. Updating all references in the nixpkgs manual to use `--replace-fail`. --- doc/build-helpers/images/appimagetools.section.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/build-helpers/images/appimagetools.section.md b/doc/build-helpers/images/appimagetools.section.md index b1640af9dff9..cbd40ab6c35f 100644 --- a/doc/build-helpers/images/appimagetools.section.md +++ b/doc/build-helpers/images/appimagetools.section.md @@ -117,7 +117,7 @@ in appimageTools.wrapType2 { install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/irccloud.png \ $out/share/icons/hicolor/512x512/apps/irccloud.png substituteInPlace $out/share/applications/irccloud.desktop \ - --replace 'Exec=AppRun' 'Exec=${pname}' + --replace-fail 'Exec=AppRun' 'Exec=${pname}' ''; } ``` @@ -147,7 +147,7 @@ let appimageContents = appimageTools.extract { inherit pname version src; postExtract = '' - substituteInPlace $out/irccloud.desktop --replace 'Exec=AppRun' 'Exec=${pname}' + substituteInPlace $out/irccloud.desktop --replace-fail 'Exec=AppRun' 'Exec=${pname}' ''; }; in appimageTools.wrapType2 {