2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildLua,
|
|
|
|
fetchFromGitHub,
|
|
|
|
luaPackages,
|
|
|
|
unstableGitUpdater,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
buildLua {
|
2023-10-09 19:29:22 +00:00
|
|
|
pname = "mpv-webm";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "0-unstable-2024-07-20";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ekisu";
|
|
|
|
repo = "mpv-webm";
|
2024-07-27 06:49:29 +00:00
|
|
|
rev = "64844ec52b7a17d621ddceacf77e1e933f856b3c";
|
|
|
|
hash = "sha256-Unz8DQtm4sc/u0ciWoOdLcAEDZL+AjD+2T4q61Gzdns=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
|
|
# only "latest" tag pointing at HEAD
|
|
|
|
hardcodeZeroVersion = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
dontBuild = false;
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [ luaPackages.moonscript ];
|
2024-01-02 11:29:13 +00:00
|
|
|
scriptPath = "build/webm.lua";
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|