trenchbroom: 2024.1 -> 2025.2

authored by emaryn and committed by Emery Hemingway 21e4b751 4abfe287

+20 -15
+19 -14
pkgs/applications/misc/trenchbroom/default.nix
··· 22 22 miniz, 23 23 tinyxml-2, 24 24 xorg, 25 - qtbase, 26 - qtwayland, 27 - wrapQtAppsHook, 25 + qt6, 28 26 copyDesktopItems, 29 27 makeDesktopItem, 30 28 }: 31 29 32 30 stdenv.mkDerivation rec { 33 31 pname = "TrenchBroom"; 34 - version = "2024.1"; 32 + version = "2025.2"; 35 33 36 34 src = fetchFromGitHub { 37 35 owner = "TrenchBroom"; 38 36 repo = "TrenchBroom"; 39 - rev = "v${version}"; 40 - hash = "sha256-HNK/gLbew7MKN6GVStxDb2tyMgyw2l1+dhPr6fSaZ4A="; 37 + tag = "v${version}"; 38 + hash = "sha256-aOHhL0yBDgFTMcDY7RKZXRrReRiThcQdf7QMHEpRuks="; 41 39 fetchSubmodules = true; 42 40 }; 41 + 43 42 # Manually simulate a vcpkg installation so that it can link the libraries 44 43 # properly. 45 44 postUnpack = ··· 87 86 ln -s ${miniz}/lib/lib* $VCPKG_ROOT/installed/${vcpkg_target}/lib/ 88 87 ln -s ${tinyxml-2}/lib/lib* $VCPKG_ROOT/installed/${vcpkg_target}/lib/ 89 88 ''; 89 + 90 90 postPatch = '' 91 91 substituteInPlace common/src/Version.h.in \ 92 92 --subst-var-by APP_VERSION_YEAR ${lib.versions.major version} \ 93 93 --subst-var-by APP_VERSION_NUMBER ${lib.versions.minor version} \ 94 94 --subst-var-by GIT_DESCRIBE v${version} 95 95 substituteInPlace app/CMakeLists.txt \ 96 - --replace 'set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")' 'set(CPACK_PACKAGING_INSTALL_PREFIX "'$out'")' 96 + --replace-fail 'set(CPACK_PACKAGING_INSTALL_PREFIX "/usr")' 'set(CPACK_PACKAGING_INSTALL_PREFIX "'$out'")' 97 97 ''; 98 98 99 99 nativeBuildInputs = [ ··· 102 102 curl 103 103 git 104 104 pandoc 105 - wrapQtAppsHook 105 + qt6.wrapQtAppsHook 106 106 copyDesktopItems 107 107 pkg-config 108 108 unzip 109 109 zip 110 110 ]; 111 + 111 112 buildInputs = [ 112 113 libGL 113 114 libGLU ··· 115 116 xorg.libSM 116 117 freeimage 117 118 freetype 118 - qtbase 119 - qtwayland 119 + qt6.qtbase 120 + qt6.qtwayland 121 + qt6.qtsvg 120 122 catch2 121 123 fmt 122 124 glew ··· 124 126 tinyxml-2 125 127 assimp 126 128 ]; 127 - QT_PLUGIN_PATH = "${qtbase}/${qtbase.qtPluginPrefix}"; 129 + 130 + QT_PLUGIN_PATH = "${qt6.qtbase}/${qt6.qtbase.qtPluginPrefix}"; 131 + 128 132 QT_QPA_PLATFORM = "offscreen"; 129 133 130 134 cmakeFlags = [ ··· 134 138 # https://github.com/TrenchBroom/TrenchBroom/issues/4002#issuecomment-1125390780 135 139 "-DCMAKE_PREFIX_PATH=cmake/packages" 136 140 ]; 141 + 137 142 ninjaFlags = [ 138 143 "TrenchBroom" 139 144 ]; ··· 162 167 }) 163 168 ]; 164 169 165 - meta = with lib; { 170 + meta = { 166 171 homepage = "https://trenchbroom.github.io/"; 167 172 changelog = "https://github.com/TrenchBroom/TrenchBroom/releases/tag/v${version}"; 168 173 description = "Level editor for Quake-engine based games"; 169 - license = licenses.gpl3Only; 170 - maintainers = with maintainers; [ astro ]; 174 + license = lib.licenses.gpl3Only; 175 + maintainers = with lib.maintainers; [ astro ]; 171 176 platforms = [ "x86_64-linux" ]; 172 177 }; 173 178 }
+1 -1
pkgs/top-level/all-packages.nix
··· 5180 5180 5181 5181 translatepy = with python3.pkgs; toPythonApplication translatepy; 5182 5182 5183 - trenchbroom = libsForQt5.callPackage ../applications/misc/trenchbroom { }; 5183 + trenchbroom = callPackage ../applications/misc/trenchbroom { }; 5184 5184 5185 5185 inherit (callPackage ../applications/office/trilium {}) 5186 5186 trilium-desktop