lol

Merge pull request #132034 from SuperSandro2000/cmake

cmake: format

authored by

Sandro and committed by
GitHub
65989410 652e9cc1

+17 -22
+17 -22
pkgs/development/tools/build-managers/cmake/default.nix
··· 13 13 14 14 stdenv.mkDerivation rec { 15 15 pname = "cmake" 16 - + lib.optionalString isBootstrap "-boot" 17 - + lib.optionalString useNcurses "-cursesUI" 18 - + lib.optionalString withQt5 "-qt5UI"; 16 + + lib.optionalString isBootstrap "-boot" 17 + + lib.optionalString useNcurses "-cursesUI" 18 + + lib.optionalString withQt5 "-qt5UI"; 19 19 version = "3.19.7"; 20 20 21 21 src = fetchurl { ··· 48 48 ++ lib.optionals buildDocs [ texinfo ] 49 49 ++ lib.optionals withQt5 [ wrapQtAppsHook ]; 50 50 51 - buildInputs = [] 52 - ++ lib.optionals useSharedLibraries [ bzip2 curlMinimal expat libarchive xz zlib libuv rhash ] 51 + buildInputs = lib.optionals useSharedLibraries [ bzip2 curlMinimal expat libarchive xz zlib libuv rhash ] 53 52 ++ lib.optional useOpenSSL openssl 54 53 ++ lib.optional useNcurses ncurses 55 54 ++ lib.optional withQt5 qtbase; ··· 62 61 --subst-var-by libc_bin ${lib.getBin stdenv.cc.libc} \ 63 62 --subst-var-by libc_dev ${lib.getDev stdenv.cc.libc} \ 64 63 --subst-var-by libc_lib ${lib.getLib stdenv.cc.libc} 65 - '' 66 - # CC_FOR_BUILD and CXX_FOR_BUILD are used to bootstrap cmake 67 - + '' 64 + # CC_FOR_BUILD and CXX_FOR_BUILD are used to bootstrap cmake 68 65 configureFlags="--parallel=''${NIX_BUILD_CORES:-1} CC=$CC_FOR_BUILD CXX=$CXX_FOR_BUILD $configureFlags" 69 66 ''; 70 67 71 68 configureFlags = [ 72 69 "--docdir=share/doc/${pname}${version}" 73 70 ] ++ (if useSharedLibraries then [ "--no-system-jsoncpp" "--system-libs" ] else [ "--no-system-libs" ]) # FIXME: cleanup 74 - ++ lib.optional withQt5 "--qt-gui" 75 - ++ lib.optionals buildDocs [ 76 - "--sphinx-build=${sphinx}/bin/sphinx-build" 77 - "--sphinx-man" 78 - "--sphinx-info" 79 - ] 80 - # Workaround https://gitlab.kitware.com/cmake/cmake/-/issues/20568 81 - ++ lib.optionals stdenv.hostPlatform.is32bit [ 82 - "CFLAGS=-D_FILE_OFFSET_BITS=64" 83 - "CXXFLAGS=-D_FILE_OFFSET_BITS=64" 84 - ] 85 - ++ [ 71 + ++ lib.optional withQt5 "--qt-gui" 72 + ++ lib.optionals buildDocs [ 73 + "--sphinx-build=${sphinx}/bin/sphinx-build" 74 + "--sphinx-man" 75 + "--sphinx-info" 76 + ] 77 + # Workaround https://gitlab.kitware.com/cmake/cmake/-/issues/20568 78 + ++ lib.optionals stdenv.hostPlatform.is32bit [ 79 + "CFLAGS=-D_FILE_OFFSET_BITS=64" 80 + "CXXFLAGS=-D_FILE_OFFSET_BITS=64" 81 + ] ++ [ 86 82 "--" 87 83 # We should set the proper `CMAKE_SYSTEM_NAME`. 88 84 # http://www.cmake.org/Wiki/CMake_Cross_Compiling ··· 117 113 118 114 meta = with lib; { 119 115 homepage = "https://cmake.org/"; 120 - changelog = "https://cmake.org/cmake/help/v${lib.versions.majorMinor version}/" 121 - + "release/${lib.versions.majorMinor version}.html"; 116 + changelog = "https://cmake.org/cmake/help/v${lib.versions.majorMinor version}/release/${lib.versions.majorMinor version}.html"; 122 117 description = "Cross-Platform Makefile Generator"; 123 118 longDescription = '' 124 119 CMake is an open-source, cross-platform family of tools designed to