mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 16:03:23 +00:00
Merge pull request #266501 from nbraud/mpvScripts/mpvacious
This commit is contained in:
commit
cc23eebac1
@ -16,7 +16,7 @@ in lib.recurseIntoAttrs
|
||||
mpris = callPackage ./mpris.nix { };
|
||||
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { inherit buildLua; };
|
||||
mpv-webm = callPackage ./mpv-webm.nix { };
|
||||
mpvacious = callPackage ./mpvacious.nix { };
|
||||
mpvacious = callPackage ./mpvacious.nix { inherit buildLua; };
|
||||
quality-menu = callPackage ./quality-menu.nix { inherit buildLua; };
|
||||
simple-mpv-webui = callPackage ./simple-mpv-webui.nix { };
|
||||
sponsorblock = callPackage ./sponsorblock.nix { };
|
||||
|
@ -1,20 +1,20 @@
|
||||
{ lib
|
||||
, stdenvNoCC
|
||||
, buildLua
|
||||
, fetchFromGitHub
|
||||
, curl
|
||||
, wl-clipboard
|
||||
, xclip
|
||||
}:
|
||||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
buildLua rec {
|
||||
pname = "mpvacious";
|
||||
version = "0.24";
|
||||
version = "0.25";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Ajatt-Tools";
|
||||
repo = "mpvacious";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-o0YcoSI+4934HlyIoI5V1h/FalCe+6tXS8Lg6kXWjSg=";
|
||||
sha256 = "sha256-XTnib4cguWFEvZtmsLfkesbjFbkt2YoyYLT587ajyUM=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
@ -26,23 +26,16 @@ stdenvNoCC.mkDerivation rec {
|
||||
--replace "'xclip" "'${xclip}/bin/xclip"
|
||||
'';
|
||||
|
||||
dontBuild = true;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
rm -r .github
|
||||
mkdir -p $out/share/mpv/scripts
|
||||
cp -r . $out/share/mpv/scripts/mpvacious
|
||||
make PREFIX=$out/share/mpv install
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
passthru.scriptName = "mpvacious";
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user