about summary refs log tree commit diff
path: root/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix
diff options
context:
space:
mode:
authornicoo <nicoo@debian.org>2024-05-03 11:36:24 +0000
committerGitHub <noreply@github.com>2024-05-03 11:36:24 +0000
commitf950274df73552c21b8f9ea8e481a0e00283c950 (patch)
treefce5150660ce5295637a5b59894cc13d5923cea3 /pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix
parentc88c954f8154cf83b2fc763ffc5c864505156c77 (diff)
parent48eb357d3573f2281bf23460a02dac966e2aef2c (diff)
Merge #308292: mpvScripts scopewide fixups
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
   '';