Skip to content

Commit

Permalink
prusa-slicer: fix build with GCC 14 and strictDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
FliegendeWurst committed Nov 25, 2024
1 parent 07bee95 commit 910f66b
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 910f66b

Please sign in to comment.