2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
bambu-studio,
|
2024-09-19 14:19:46 +00:00
|
|
|
opencv,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
bambu-studio.overrideAttrs (
|
|
|
|
finalAttrs: previousAttrs: {
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "2.1.1";
|
2024-05-15 15:35:15 +00:00
|
|
|
pname = "orca-slicer";
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SoftFever";
|
|
|
|
repo = "OrcaSlicer";
|
|
|
|
rev = "v${finalAttrs.version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-7fusdSYpZb4sYl5L/+81PzMd42Nsejj+kCZsq0f7eIk=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
2024-04-21 15:54:59 +00:00
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
patches =
|
|
|
|
previousAttrs.patches
|
|
|
|
++ [
|
|
|
|
# FIXME: only required for 2.1.1, can be removed in the next version
|
|
|
|
./0002-fix-build-for-gcc-13.diff
|
|
|
|
|
|
|
|
./dont-link-opencv-world.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
previousAttrs.buildInputs
|
|
|
|
++ [
|
2024-09-19 14:19:46 +00:00
|
|
|
opencv
|
2024-07-27 06:49:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
# Fixes blackscreen dialogs
|
|
|
|
--set WEBKIT_DISABLE_COMPOSITING_MODE 1
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
# needed to prevent collisions between the LICENSE.txt files of
|
|
|
|
# bambu-studio and orca-slicer.
|
|
|
|
postInstall = ''
|
|
|
|
mv $out/LICENSE.txt $out/share/OrcaSlicer/LICENSE.txt
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-07-27 06:49:29 +00:00
|
|
|
description = "G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc.)";
|
2024-05-15 15:35:15 +00:00
|
|
|
homepage = "https://github.com/SoftFever/OrcaSlicer";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
zhaofengli
|
|
|
|
ovlach
|
|
|
|
pinpox
|
|
|
|
];
|
|
|
|
mainProgram = "orca-slicer";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
)
|