Merge pull request #231702 from chuangzhu/webtorrent-mpv-hook

This commit is contained in:
Artturi 2023-05-21 18:48:21 +03:00 committed by GitHub
commit 920fbd7fea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib , buildNpmPackage , fetchFromGitHub, nodejs }:
{ lib, buildNpmPackage, fetchFromGitHub, nodejs, python3 }:
buildNpmPackage rec {
pname = "webtorrent-mpv-hook";
@ -21,6 +21,10 @@ buildNpmPackage rec {
npmDepsHash = "sha256-GpNUJ5ZCgMjSYLqsIE/RwkTSFT3uAhxrHPe7XvGDRHE=";
makeCacheWritable = true;
nativeBuildInputs = [
python3 # Fixes node-gyp on aarch64-linux
];
postInstall = ''
mkdir -p $out/share/mpv/scripts/
ln -s $out/lib/node_modules/webtorrent-mpv-hook/build/webtorrent.js $out/share/mpv/scripts/