depot/pkgs/applications/video/mpv/scripts/mpv-webm.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

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 ];
};
}