depot/third_party/nixpkgs/pkgs/applications/video/mpv/scripts/mpv-webm.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

36 lines
855 B
Nix

{ lib
, stdenvNoCC
, fetchFromGitHub
, luaPackages
}:
stdenvNoCC.mkDerivation {
pname = "mpv-webm";
version = "unstable-2023-02-23";
src = fetchFromGitHub {
owner = "ekisu";
repo = "mpv-webm";
rev = "a18375932e39e9b2a40d9c7ab52ea367b41e2558";
hash = "sha256-aetkQ1gU/6Yys5FJS/N06ED9tCSvL6BAgUGdNmNmpbU=";
};
nativeBuildInputs = [ luaPackages.moonscript ];
installPhase = ''
runHook preInstall
mkdir -p $out/share/mpv/scripts
install -m 644 build/webm.lua $out/share/mpv/scripts/
runHook postInstall
'';
passthru.scriptName = "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 ];
};
}