Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 40 lines 938 B view raw
1{ 2 lib, 3 buildLua, 4 fetchFromGitHub, 5 makeFontsConf, 6 nix-update-script, 7}: 8buildLua (finalAttrs: { 9 pname = "modernx"; 10 version = "0.6.1"; 11 12 scriptPath = "modernx.lua"; 13 src = fetchFromGitHub { 14 owner = "cyl0"; 15 repo = "ModernX"; 16 rev = finalAttrs.version; 17 hash = "sha256-q7DwyfmOIM7K1L7vvCpq1EM0RVpt9E/drhAa9rLYb1k="; 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 = with lib; { 35 description = "Modern OSC UI replacement for MPV that retains the functionality of the default OSC"; 36 homepage = "https://github.com/cyl0/ModernX"; 37 license = licenses.lgpl21Plus; 38 maintainers = with maintainers; [ Guanran928 ]; 39 }; 40})