diff options
author | nicoo <nicoo@debian.org> | 2024-05-03 11:36:24 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-03 11:36:24 +0000 |
commit | f950274df73552c21b8f9ea8e481a0e00283c950 (patch) | |
tree | fce5150660ce5295637a5b59894cc13d5923cea3 /pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix | |
parent | c88c954f8154cf83b2fc763ffc5c864505156c77 (diff) | |
parent | 48eb357d3573f2281bf23460a02dac966e2aef2c (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.nix | 4 |
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 ''; |