doc: replace references to --replace
for the substitute
command
The `--replace` argument for `substitute` and `substituteInPlace` was
deprecated in e07a2fab7f
. Updating all
references in the nixpkgs manual to use `--replace-fail`.
This commit is contained in:
parent
cfe2415d73
commit
052431ce98
@ -117,7 +117,7 @@ in appimageTools.wrapType2 {
|
|||||||
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/irccloud.png \
|
install -m 444 -D ${appimageContents}/usr/share/icons/hicolor/512x512/apps/irccloud.png \
|
||||||
$out/share/icons/hicolor/512x512/apps/irccloud.png
|
$out/share/icons/hicolor/512x512/apps/irccloud.png
|
||||||
substituteInPlace $out/share/applications/irccloud.desktop \
|
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 {
|
appimageContents = appimageTools.extract {
|
||||||
inherit pname version src;
|
inherit pname version src;
|
||||||
postExtract = ''
|
postExtract = ''
|
||||||
substituteInPlace $out/irccloud.desktop --replace 'Exec=AppRun' 'Exec=${pname}'
|
substituteInPlace $out/irccloud.desktop --replace-fail 'Exec=AppRun' 'Exec=${pname}'
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
in appimageTools.wrapType2 {
|
in appimageTools.wrapType2 {
|
||||||
|
Loading…
Reference in New Issue
Block a user