summaryrefslogtreecommitdiffstats
path: root/pkgs/applications/networking/irc
diff options
context:
space:
mode:
authorbwkam <userdev987@gmail.com>2024-05-03 02:51:37 +0300
committerbwkam <userdev987@gmail.com>2024-05-03 02:51:37 +0300
commit06cc2f266bef5b91cc12de4ef078722452bd526a (patch)
tree15b7c25e92f9416d10d289779bf6ea28f1a528d3 /pkgs/applications/networking/irc
parentcdd125528422fac1272d7db1fad394f47c29ed91 (diff)
weechat-matrix: change --replace to --replace-fail
Diffstat (limited to 'pkgs/applications/networking/irc')
-rw-r--r--pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix
index e11981c221fa..2b572df38910 100644
--- a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix
+++ b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix
@@ -76,11 +76,11 @@ in buildPythonPackage {
cp contrib/matrix_decrypt.py $out/bin/matrix_decrypt
cp contrib/matrix_sso_helper.py $out/bin/matrix_sso_helper
substituteInPlace $out/bin/matrix_upload \
- --replace '/usr/bin/env -S python3' '${scriptPython}/bin/python'
+ --replace-fail '/usr/bin/env -S python3' '${scriptPython}/bin/python'
substituteInPlace $out/bin/matrix_sso_helper \
- --replace '/usr/bin/env -S python3' '${scriptPython}/bin/python'
+ --replace-fail '/usr/bin/env -S python3' '${scriptPython}/bin/python'
substituteInPlace $out/bin/matrix_decrypt \
- --replace '/usr/bin/env python3' '${scriptPython}/bin/python'
+ --replace-fail '/usr/bin/env python3' '${scriptPython}/bin/python'
mkdir -p $out/${python.sitePackages}
cp -r matrix $out/${python.sitePackages}/matrix
@@ -90,8 +90,8 @@ in buildPythonPackage {
postFixup = ''
addToSearchPath program_PYTHONPATH $out/${python.sitePackages}
patchPythonScript $out/share/matrix.py
- substituteInPlace $out/${python.sitePackages}/matrix/server.py --replace \"matrix_sso_helper\" \"$out/bin/matrix_sso_helper\"
- substituteInPlace $out/${python.sitePackages}/matrix/uploads.py --replace \"matrix_upload\" \"$out/bin/matrix_upload\"
+ substituteInPlace $out/${python.sitePackages}/matrix/server.py --replace-fail \"matrix_sso_helper\" \"$out/bin/matrix_sso_helper\"
+ substituteInPlace $out/${python.sitePackages}/matrix/uploads.py --replace-fail \"matrix_upload\" \"$out/bin/matrix_upload\"
'';
meta = with lib; {