about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/video/mpv/scripts/mpv-webm.nix
blob: 5645d6a65f6bf0a49cf7e02e77b14f7e39694b1d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib
, buildLua
, fetchFromGitHub
, luaPackages
, unstableGitUpdater
}:

buildLua {
  pname = "mpv-webm";
  version = "unstable-2023-11-18";

  src = fetchFromGitHub {
    owner = "ekisu";
    repo = "mpv-webm";
    rev = "6b5863f68275b3dc91c2507284c039ec8a4cbd97";
    hash = "sha256-rJamBm6FyxWcJO7VXXOUTO9piWCkPfEVdqGKGeJ/h0c=";
  };
  passthru.updateScript = unstableGitUpdater {};

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