mpvScripts.modernx: init at 0.2.4
This commit is contained in:
parent
350947e1d4
commit
698b5d49b5
2 changed files with 40 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
pkgs: {
|
pkgs: {
|
||||||
metacubexd = pkgs.callPackage ./metacubexd {};
|
metacubexd = pkgs.callPackage ./metacubexd {};
|
||||||
|
mpvScripts.modernx = pkgs.callPackage ./mpvScripts/modernx {};
|
||||||
}
|
}
|
||||||
|
|
39
pkgs/mpvScripts/modernx/default.nix
Normal file
39
pkgs/mpvScripts/modernx/default.nix
Normal file
|
@ -0,0 +1,39 @@
|
||||||
|
{
|
||||||
|
lib,
|
||||||
|
stdenvNoCC,
|
||||||
|
fetchFromGitHub,
|
||||||
|
}:
|
||||||
|
# TODO: use buildLua
|
||||||
|
# error: evaluation aborted with the following error message: 'lib.customisation.callPackageWith: Function called without required argument "buildLua"
|
||||||
|
stdenvNoCC.mkDerivation rec {
|
||||||
|
pname = "modernx";
|
||||||
|
version = "0.2.4";
|
||||||
|
|
||||||
|
# zydezu's fork
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zydezu";
|
||||||
|
repo = "ModernX";
|
||||||
|
rev = version;
|
||||||
|
hash = "sha256-b5dJeJ5GPEKhyznYIAQ3YzUq01rYUhDbci1ilNuXrdk=";
|
||||||
|
};
|
||||||
|
|
||||||
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
install -Dm644 modernx.lua $out/share/mpv/scripts/modernx.lua
|
||||||
|
|
||||||
|
# I dont know how to handle the font...
|
||||||
|
install -Dm644 Material-Design-Iconic-Font.ttf $out/share/mpv/fonts/Material-Design-Iconic-Font.ttf
|
||||||
|
install -Dm644 Material-Design-Iconic-Round.ttf $out/share/mpv/fonts/Material-Design-Iconic-Round.ttf
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.scriptName = "modernx.lua";
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A modern OSC UI replacement for MPV that retains the functionality of the default OSC. (@zydezu's fork)";
|
||||||
|
homepage = "https://github.com/zydezu/ModernX/";
|
||||||
|
license = licenses.gpl2; # https://github.com/maoiscat/mpv-osc-modern/issues/43
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue