minetest: format

Format to match the new standards in nixpkgs

authored by 06kellyjac and committed by Francesco Gazzetta 11676f8a 55c14498

+103 -89
+103 -89
pkgs/games/minetest/default.nix
··· 1 - { lib 2 - , stdenv 3 - , fetchFromGitHub 4 - , gitUpdater 5 - , cmake 6 - , coreutils 7 - , libpng 8 - , bzip2 9 - , curl 10 - , libogg 11 - , jsoncpp 12 - , libjpeg 13 - , libGLU 14 - , openal 15 - , libvorbis 16 - , sqlite 17 - , luajit 18 - , freetype 19 - , gettext 20 - , doxygen 21 - , ncurses 22 - , graphviz 23 - , xorg 24 - , gmp 25 - , libspatialindex 26 - , leveldb 27 - , postgresql 28 - , hiredis 29 - , libiconv 30 - , ninja 31 - , prometheus-cpp 32 - , OpenGL 33 - , OpenAL ? openal 34 - , Carbon 35 - , Cocoa 36 - , Kernel 37 - , buildClient ? true 38 - , buildServer ? true 39 - , SDL2 40 - , useSDL2 ? false 41 }: 42 43 stdenv.mkDerivation (finalAttrs: { ··· 81 ninja 82 ]; 83 84 - buildInputs = [ 85 - jsoncpp 86 - gettext 87 - freetype 88 - sqlite 89 - curl 90 - bzip2 91 - ncurses 92 - gmp 93 - libspatialindex 94 - ] ++ lib.optional (lib.meta.availableOn stdenv.hostPlatform luajit) luajit 95 - ++ lib.optionals stdenv.hostPlatform.isDarwin [ 96 - libiconv 97 - OpenGL 98 - OpenAL 99 - Carbon 100 - Cocoa 101 - Kernel 102 - ] ++ lib.optionals buildClient [ 103 - libpng 104 - libjpeg 105 - libGLU 106 - openal 107 - libogg 108 - libvorbis 109 - ] ++ lib.optionals (buildClient && useSDL2) [ 110 - SDL2 111 - ] ++ lib.optionals (buildClient && !stdenv.hostPlatform.isDarwin && !useSDL2) [ 112 - xorg.libX11 113 - xorg.libXi 114 - ] ++ lib.optionals buildServer [ 115 - leveldb 116 - postgresql 117 - hiredis 118 - prometheus-cpp 119 - ]; 120 121 - postPatch = '' 122 - substituteInPlace src/filesys.cpp \ 123 - --replace-fail "/bin/rm" "${coreutils}/bin/rm" 124 - '' + lib.optionalString stdenv.hostPlatform.isDarwin '' 125 - sed -i '/pagezero_size/d;/fixup_bundle/d' src/CMakeLists.txt 126 - ''; 127 128 - postInstall = lib.optionalString stdenv.hostPlatform.isLinux '' 129 - patchShebangs $out 130 - '' + lib.optionalString stdenv.hostPlatform.isDarwin '' 131 - mkdir -p $out/Applications 132 - mv $out/minetest.app $out/Applications 133 - ''; 134 135 doCheck = true; 136 ··· 144 description = "Infinite-world block sandbox game"; 145 license = licenses.lgpl21Plus; 146 platforms = platforms.linux ++ platforms.darwin; 147 - maintainers = with maintainers; [ fpletz fgaz ]; 148 mainProgram = if buildClient then "minetest" else "minetestserver"; 149 }; 150 })
··· 1 + { 2 + lib, 3 + stdenv, 4 + fetchFromGitHub, 5 + gitUpdater, 6 + cmake, 7 + coreutils, 8 + libpng, 9 + bzip2, 10 + curl, 11 + libogg, 12 + jsoncpp, 13 + libjpeg, 14 + libGLU, 15 + openal, 16 + libvorbis, 17 + sqlite, 18 + luajit, 19 + freetype, 20 + gettext, 21 + doxygen, 22 + ncurses, 23 + graphviz, 24 + xorg, 25 + gmp, 26 + libspatialindex, 27 + leveldb, 28 + postgresql, 29 + hiredis, 30 + libiconv, 31 + ninja, 32 + prometheus-cpp, 33 + OpenGL, 34 + OpenAL ? openal, 35 + Carbon, 36 + Cocoa, 37 + Kernel, 38 + buildClient ? true, 39 + buildServer ? true, 40 + SDL2, 41 + useSDL2 ? false, 42 }: 43 44 stdenv.mkDerivation (finalAttrs: { ··· 82 ninja 83 ]; 84 85 + buildInputs = 86 + [ 87 + jsoncpp 88 + gettext 89 + freetype 90 + sqlite 91 + curl 92 + bzip2 93 + ncurses 94 + gmp 95 + libspatialindex 96 + ] 97 + ++ lib.optional (lib.meta.availableOn stdenv.hostPlatform luajit) luajit 98 + ++ lib.optionals stdenv.hostPlatform.isDarwin [ 99 + libiconv 100 + OpenGL 101 + OpenAL 102 + Carbon 103 + Cocoa 104 + Kernel 105 + ] 106 + ++ lib.optionals buildClient [ 107 + libpng 108 + libjpeg 109 + libGLU 110 + openal 111 + libogg 112 + libvorbis 113 + ] 114 + ++ lib.optionals (buildClient && useSDL2) [ 115 + SDL2 116 + ] 117 + ++ lib.optionals (buildClient && !stdenv.hostPlatform.isDarwin && !useSDL2) [ 118 + xorg.libX11 119 + xorg.libXi 120 + ] 121 + ++ lib.optionals buildServer [ 122 + leveldb 123 + postgresql 124 + hiredis 125 + prometheus-cpp 126 + ]; 127 128 + postPatch = 129 + '' 130 + substituteInPlace src/filesys.cpp \ 131 + --replace-fail "/bin/rm" "${coreutils}/bin/rm" 132 + '' 133 + + lib.optionalString stdenv.hostPlatform.isDarwin '' 134 + sed -i '/pagezero_size/d;/fixup_bundle/d' src/CMakeLists.txt 135 + ''; 136 137 + postInstall = 138 + lib.optionalString stdenv.hostPlatform.isLinux '' 139 + patchShebangs $out 140 + '' 141 + + lib.optionalString stdenv.hostPlatform.isDarwin '' 142 + mkdir -p $out/Applications 143 + mv $out/minetest.app $out/Applications 144 + ''; 145 146 doCheck = true; 147 ··· 155 description = "Infinite-world block sandbox game"; 156 license = licenses.lgpl21Plus; 157 platforms = platforms.linux ++ platforms.darwin; 158 + maintainers = with maintainers; [ 159 + fpletz 160 + fgaz 161 + ]; 162 mainProgram = if buildClient then "minetest" else "minetestserver"; 163 }; 164 })