mpvScripts.mpv-osc-modern: init at 1.1.1
This commit is contained in:
@@ -72,6 +72,7 @@ let
|
||||
modernx-zydezu = callPackage ./modernx-zydezu.nix { };
|
||||
mpris = callPackage ./mpris.nix { };
|
||||
mpv-cheatsheet = callPackage ./mpv-cheatsheet.nix { };
|
||||
mpv-osc-modern = callPackage ./mpv-osc-modern.nix { };
|
||||
mpv-playlistmanager = callPackage ./mpv-playlistmanager.nix { };
|
||||
mpv-webm = callPackage ./mpv-webm.nix { };
|
||||
mpvacious = callPackage ./mpvacious.nix { };
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, buildLua
|
||||
, fetchFromGitHub
|
||||
, makeFontsConf
|
||||
, nix-update-script
|
||||
}:
|
||||
buildLua (finalAttrs: {
|
||||
pname = "mpv-osc-modern";
|
||||
version = "1.1.1";
|
||||
|
||||
scriptPath = "modern.lua";
|
||||
src = fetchFromGitHub {
|
||||
owner = "maoiscat";
|
||||
repo = "mpv-osc-modern";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-RMUy8UpSRSCEPAbnGLpJ2NjDsDdkjq8cNsdGwsQ5ANU=";
|
||||
};
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $out/share/fonts
|
||||
cp -r *.ttf $out/share/fonts
|
||||
'';
|
||||
passthru.extraWrapperArgs = [
|
||||
"--set"
|
||||
"FONTCONFIG_FILE"
|
||||
(toString (makeFontsConf {
|
||||
fontDirectories = [ "${finalAttrs.finalPackage}/share/fonts" ];
|
||||
}))
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Another MPV OSC Script";
|
||||
homepage = "https://github.com/maoiscat/mpv-osc-modern";
|
||||
license = licenses.lgpl21Plus;
|
||||
maintainers = with maintainers; [ Guanran928 ];
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user