Merge pull request #109545 from kmicklas/mpvacious
This commit is contained in:
commit
ec64627b97
@ -4815,6 +4815,12 @@
|
||||
github = "kmein";
|
||||
githubId = 10352507;
|
||||
};
|
||||
kmicklas = {
|
||||
email = "maintainer@kmicklas.com";
|
||||
name = "Ken Micklas";
|
||||
github = "kmicklas";
|
||||
githubId = 929096;
|
||||
};
|
||||
knairda = {
|
||||
email = "adrian@kummerlaender.eu";
|
||||
name = "Adrian Kummerlaender";
|
||||
|
38
pkgs/applications/video/mpv/scripts/mpvacious.nix
Normal file
38
pkgs/applications/video/mpv/scripts/mpvacious.nix
Normal file
@ -0,0 +1,38 @@
|
||||
{ lib, stdenv, fetchFromGitHub, curl, xclip }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "mpvacious";
|
||||
version = "0.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ajatt-Tools";
|
||||
repo = "mpvacious";
|
||||
rev = "v${version}";
|
||||
sha256 = "1xz4qh2ibfv03m3pfdasim9byvlm78wigx1linmih19vgg99vky2";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace subs2srs.lua \
|
||||
--replace "'curl'" "'${curl}/bin/curl'" \
|
||||
--replace "xclip" "${xclip}/bin/xclip"
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out/share/mpv/scripts
|
||||
cp subs2srs.lua $out/share/mpv/scripts
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.scriptName = "subs2srs.lua";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Adds mpv keybindings to create Anki cards from movies and TV shows";
|
||||
homepage = "https://github.com/Ajatt-Tools/mpvacious";
|
||||
license = licenses.gpl3Plus;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ kmicklas ];
|
||||
};
|
||||
}
|
@ -23617,6 +23617,7 @@ in
|
||||
autoload = callPackage ../applications/video/mpv/scripts/autoload.nix {};
|
||||
convert = callPackage ../applications/video/mpv/scripts/convert.nix {};
|
||||
mpris = callPackage ../applications/video/mpv/scripts/mpris.nix {};
|
||||
mpvacious = callPackage ../applications/video/mpv/scripts/mpvacious.nix {};
|
||||
simple-mpv-webui = callPackage ../applications/video/mpv/scripts/simple-mpv-webui.nix {};
|
||||
sponsorblock = callPackage ../applications/video/mpv/scripts/sponsorblock.nix {};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user