electron-chromedriver_33: 33.3.0 -> 33.3.1
[NixPkgs.git] / pkgs / applications / video / mpv / scripts / modernx-zydezu.nix
blob7bc25c78a9cab6c8de64ad1c721f81772a50ed53
2   lib,
3   buildLua,
4   fetchFromGitHub,
5   makeFontsConf,
6   nix-update-script,
7 }:
8 buildLua (finalAttrs: {
9   pname = "modernx-zydezu";
10   version = "0.3.9";
12   scriptPath = "modernx.lua";
13   src = fetchFromGitHub {
14     owner = "zydezu";
15     repo = "ModernX";
16     rev = finalAttrs.version;
17     hash = "sha256-wjBFI69lcsVY3HDXyz1VV5IkQvkJQQfMbGwUYmwlJ9w=";
18   };
20   postInstall = ''
21     mkdir -p $out/share/fonts
22     cp -r *.ttf $out/share/fonts
23   '';
24   passthru.extraWrapperArgs = [
25     "--set"
26     "FONTCONFIG_FILE"
27     (toString (makeFontsConf {
28       fontDirectories = [ "${finalAttrs.finalPackage}/share/fonts" ];
29     }))
30   ];
32   passthru.updateScript = nix-update-script { };
34   meta = {
35     description = "Modern OSC UI replacement for MPV that retains the functionality of the default OSC";
36     changelog = "https://github.com/zydezu/ModernX/releases/tag/${finalAttrs.version}";
37     homepage = "https://github.com/zydezu/ModernX";
38     license = lib.licenses.lgpl21Plus;
39     maintainers = with lib.maintainers; [
40       luftmensch-luftmensch
41       Guanran928
42     ];
43   };