de-vendor mpv-webm
This commit is contained in:
parent
5be733cfa7
commit
4a5943d61b
@ -222,8 +222,6 @@
|
||||
nixosConfigurations = mkHosts mkConfig;
|
||||
|
||||
packages = forAllSystems ({ inputs, pkgs, lib, flakes, ... }: {
|
||||
mpv-webm = pkgs.callPackage ./pkgs/mpv-webm.nix {}; # TODO: https://github.com/NixOS/nixpkgs/pull/238659, remove when i switch to 23.11
|
||||
|
||||
nixos-rebuild-nom = pkgs.writeScriptBin "nixos-rebuild" ''
|
||||
exec ${lib.getExe pkgs.nixos-rebuild} "$@" |& ${lib.getExe pkgs.nix-output-monitor}
|
||||
'';
|
||||
|
@ -1,28 +0,0 @@
|
||||
{ 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";
|
||||
|
||||
}
|
@ -2,6 +2,7 @@
|
||||
|
||||
let
|
||||
m = pkgs.mpvScripts;
|
||||
mu = pkgs.unstable.mpvScripts;
|
||||
a4k = lib.mkIf (m ? anime4k);
|
||||
in
|
||||
|
||||
@ -28,7 +29,7 @@ in
|
||||
#m.thumbnail # TOO SLOW
|
||||
m.thumbfast
|
||||
m.mpris
|
||||
(m.mpv-webm or flakes.self.pkgs.mpv-webm) # activate with SHIFT+W
|
||||
(m.mpv-webm or mu.mpv-webm) # activate with SHIFT+W
|
||||
# from https://github.com/mpv-player/mpv/issues/9767#issuecomment-1024831645
|
||||
({ scriptName = "dynamic-subs.lua"; } // (pkgs.writeTextDir "share/mpv/scripts/dynamic-subs.lua" ''
|
||||
mp.add_hook('on_load', 10, function()
|
||||
|
Loading…
Reference in New Issue
Block a user