Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 44 lines 1.1 kB view raw
1{ 2 lib, 3 buildLua, 4 fetchFromGitHub, 5 makeFontsConf, 6 nix-update-script, 7}: 8buildLua (finalAttrs: { 9 pname = "modernx-zydezu"; 10 version = "0.4.3"; 11 12 scriptPath = "modernx.lua"; 13 src = fetchFromGitHub { 14 owner = "zydezu"; 15 repo = "ModernX"; 16 rev = finalAttrs.version; 17 hash = "sha256-vveDQsvMVt9DYFM1Ong7/Gx5P9jMq/BEj2AhSuW6tRI="; 18 }; 19 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 ]; 31 32 passthru.updateScript = nix-update-script { }; 33 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 }; 44})