Skip to content

Commit

Permalink
prusa-slicer: fix build with GCC 14 and strictDeps (#359083)
Browse files Browse the repository at this point in the history
  • Loading branch information
emilazy authored Nov 26, 2024
2 parents d8cc119 + 910f66b commit 95823c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pkgs/applications/misc/prusa-slicer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,19 @@ stdenv.mkDerivation (finalAttrs: {
rev = "version_${finalAttrs.version}";
};

# required for GCC 14
postPatch = ''
substituteInPlace src/libslic3r/Arrange/Core/DataStoreTraits.hpp \
--replace-fail \
"WritableDataStoreTraits<ArrItem>::template set" \
"WritableDataStoreTraits<ArrItem>::set"
'';

nativeBuildInputs = [
cmake
pkg-config
wrapGAppsHook3
wxGTK-override'
];

buildInputs = [
Expand Down Expand Up @@ -132,6 +141,8 @@ stdenv.mkDerivation (finalAttrs: {
darwin.apple_sdk_11_0.frameworks.CoreWLAN
];

strictDeps = true;

separateDebugInfo = true;

# The build system uses custom logic - defined in
Expand Down

0 comments on commit 95823c1

Please sign in to comment.