Skip to content

Commit

Permalink
swiften: fix GCC 14 build (NixOS#373484)
Browse files Browse the repository at this point in the history
  • Loading branch information
ck3d authored Jan 13, 2025
2 parents 5b05bd6 + 41ab0f7 commit f6b5213
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
12 changes: 12 additions & 0 deletions pkgs/by-name/sw/swiften/gcc14-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/Swift/Controllers/StatusCache.h b/Swift/Controllers/StatusCache.h
index 83fd17a..a7ca765 100644
--- a/Swift/Controllers/StatusCache.h
+++ b/Swift/Controllers/StatusCache.h
@@ -9,6 +9,7 @@
#include <list>
#include <string>
#include <utility>
+#include <vector>

#include <boost/filesystem/path.hpp>

11 changes: 7 additions & 4 deletions pkgs/by-name/sw/swiften/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
fetchurl,
fetchpatch,
openssl,
boost,
# pin Boost 1.86 due to use of boost/asio/io_service.hpp
boost186,
scons,
}:

Expand All @@ -33,6 +34,8 @@ stdenv.mkDerivation rec {
url = "https://swift.im/git/swift/patch/Swiften/Base/Platform.h?id=3666cbbe30e4d4e25401a5902ae359bc2c24248b";
sha256 = "Wh8Nnfm0/EppSJ7aH2vTNObHtodE5tM19kV1oDfm70w=";
})

./gcc14-fix.patch
];

nativeBuildInputs = [
Expand All @@ -49,13 +52,13 @@ stdenv.mkDerivation rec {

propagatedBuildInputs = [
openssl
boost
boost186
];

sconsFlags = [
"openssl=${openssl.dev}"
"boost_includedir=${boost.dev}/include"
"boost_libdir=${boost.out}/lib"
"boost_includedir=${lib.getDev boost186}/include"
"boost_libdir=${boost186.out}/lib"
"boost_bundled_enable=false"
"max_jobs=1"
"optimize=1"
Expand Down

0 comments on commit f6b5213

Please sign in to comment.