config/pkgs/mpv-webm.nix
2023-06-20 01:39:19 +02:00

29 lines
596 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";
}