depot/third_party/nixpkgs/pkgs/applications/video/mpv/scripts/mpv-webm.nix

35 lines
842 B
Nix

{
lib,
buildLua,
fetchFromGitHub,
luaPackages,
unstableGitUpdater,
}:
buildLua {
pname = "mpv-webm";
version = "0-unstable-2024-07-20";
src = fetchFromGitHub {
owner = "ekisu";
repo = "mpv-webm";
rev = "64844ec52b7a17d621ddceacf77e1e933f856b3c";
hash = "sha256-Unz8DQtm4sc/u0ciWoOdLcAEDZL+AjD+2T4q61Gzdns=";
};
passthru.updateScript = unstableGitUpdater {
# only "latest" tag pointing at HEAD
hardcodeZeroVersion = true;
};
dontBuild = false;
nativeBuildInputs = [ luaPackages.moonscript ];
scriptPath = "build/webm.lua";
meta = with lib; {
description = "Simple WebM maker for mpv, with no external dependencies";
homepage = "https://github.com/ekisu/mpv-webm";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ pbsds ];
};
}