Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.1 KiB
Nix

{
lib,
buildLua,
fetchFromGitHub,
gitUpdater,
curl,
wl-clipboard,
xclip,
}:
buildLua rec {
pname = "mpvacious";
version = "0.40";
src = fetchFromGitHub {
owner = "Ajatt-Tools";
repo = "mpvacious";
rev = "v${version}";
sha256 = "sha256-PxLbv9aGVQV4Gea2H/GcWv/yuaRSqBRqbzRXu612kLE=";
};
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
postPatch = ''
substituteInPlace utils/forvo.lua \
--replace-fail "'curl" "'${lib.getExe curl}"
substituteInPlace platform/nix.lua \
--replace-fail "'curl" "'${lib.getExe curl}" \
--replace-fail "'wl-copy" "'${lib.getExe' wl-clipboard "wl-copy"}" \
--replace-fail "'xclip" "'${lib.getExe xclip}"
'';
installPhase = ''
runHook preInstall
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;
maintainers = with maintainers; [ kmicklas ];
};
}