mpvScripts.mpv-webm: init at unstable-2023-02-23

This commit is contained in:
Peder Bergebakken Sundt 2023-06-20 01:54:49 +02:00
parent 18036c0be9
commit 5809b0bbe6
2 changed files with 37 additions and 0 deletions

View File

@ -13,6 +13,7 @@ lib.recurseIntoAttrs
inhibit-gnome = callPackage ./inhibit-gnome.nix { };
mpris = callPackage ./mpris.nix { };
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };
mpv-webm = callPackage ./mpv-webm.nix { };
mpvacious = callPackage ./mpvacious.nix { };
quality-menu = callPackage ./quality-menu.nix { };
simple-mpv-webui = callPackage ./simple-mpv-webui.nix { };

View File

@ -0,0 +1,36 @@
{ 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 ];
};
}