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