diff options
author | nicoo <nicoo@mur.at> | 2023-12-09 20:18:42 +0000 |
---|---|---|
committer | nicoo <nicoo@mur.at> | 2023-12-12 19:00:33 +0000 |
commit | 255dbfdbe219d9197440743c5e94a7e99d4dad5d (patch) | |
tree | 33f61ef9eb0fb6ffbb9b52be59d0ff5535a2d1f7 /pkgs/applications/video/mpv | |
parent | 40ef9f3b76adb6dc431148c341ce0b43551996e8 (diff) | |
download | nixlib-255dbfdbe219d9197440743c5e94a7e99d4dad5d.tar nixlib-255dbfdbe219d9197440743c5e94a7e99d4dad5d.tar.gz nixlib-255dbfdbe219d9197440743c5e94a7e99d4dad5d.tar.bz2 nixlib-255dbfdbe219d9197440743c5e94a7e99d4dad5d.tar.lz nixlib-255dbfdbe219d9197440743c5e94a7e99d4dad5d.tar.xz nixlib-255dbfdbe219d9197440743c5e94a7e99d4dad5d.tar.zst nixlib-255dbfdbe219d9197440743c5e94a7e99d4dad5d.zip |
mpvScripts.webtorrent-mpv-hook: Add `updateScript`
Diffstat (limited to 'pkgs/applications/video/mpv')
-rw-r--r-- | pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix b/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix index e870818fc64f..10fe3d0cdce0 100644 --- a/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix +++ b/pkgs/applications/video/mpv/scripts/webtorrent-mpv-hook.nix @@ -1,4 +1,4 @@ -{ lib, buildNpmPackage, fetchFromGitHub, nodejs, python3 }: +{ lib, buildNpmPackage, fetchFromGitHub, gitUpdater, nodejs, python3 }: buildNpmPackage rec { pname = "webtorrent-mpv-hook"; @@ -10,6 +10,9 @@ buildNpmPackage rec { rev = "v${version}"; hash = "sha256-/dMtXcIyfAs++Zgz2CxRW0tkzn5QjS+WVGChlCyrU0U="; }; + passthru.updateScript = gitUpdater { + rev-prefix = "v"; + }; postPatch = '' substituteInPlace src/webtorrent.ts --replace "node_path: 'node'" "node_path: '${nodejs}/bin/node'" |