about summary refs log tree commit diff
path: root/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2024-05-03 12:01:32 +0000
committerGitHub <noreply@github.com>2024-05-03 12:01:32 +0000
commitae736c738d6926d976a3135aa6efd8e365e461d6 (patch)
treea9011433daec0b8c3e4ec0d91f40a1bad63e31a8 /pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix
parent54fd6284797d5111dc73dffe14bc297ea29fa791 (diff)
parenteba1ebd6095dc1552a7708ed55070cc788e4a835 (diff)
Merge master into staging-next
Diffstat (limited to 'pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix')
-rw-r--r--pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix b/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix
index 10fe3d0cdce03..08967c3f28451 100644
--- a/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix
+++ b/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix
@@ -15,9 +15,9 @@ buildNpmPackage rec {
   };
 
   postPatch = ''
-    substituteInPlace src/webtorrent.ts --replace "node_path: 'node'" "node_path: '${nodejs}/bin/node'"
+    substituteInPlace src/webtorrent.ts --replace-fail "node_path: 'node'" "node_path: '${lib.getExe nodejs}'"
     # This executable is just for telling non-Nix users how to install
-    substituteInPlace package.json --replace '"bin": "build/bin.mjs",' ""
+    substituteInPlace package.json --replace-fail '"bin": "build/bin.mjs",' ""
     rm -rf src/bin.ts
   '';