about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/bambu-studio/orca-slicer.nix
blob: dc55a4d02f6940c9e165292f0e5f1466ccaed2a5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib, fetchFromGitHub, makeDesktopItem, bambu-studio }:

bambu-studio.overrideAttrs (finalAttrs: previousAttrs: {
  version = "1.9.1";
  pname = "orca-slicer";

  # Don't inherit patches from bambu-studio
  patches = [
    ./0001-not-for-upstream-CMakeLists-Link-against-webkit2gtk-.patch
  ];

  src = fetchFromGitHub {
    owner = "SoftFever";
    repo = "OrcaSlicer";
    rev = "v${finalAttrs.version}";
    hash = "sha256-+JYUpyEr3xraJEb1wDkyle+jAQiNE+AMUTT1fhh4Clw=";
  };

  meta = with lib; {
    description = "G-code generator for 3D printers (Bambu, Prusa, Voron, VzBot, RatRig, Creality, etc";
    homepage = "https://github.com/SoftFever/OrcaSlicer";
    license = licenses.agpl3Only;
    maintainers = with maintainers; [ zhaofengli ovlach pinpox ];
    mainProgram = "orca-slicer";
    platforms = platforms.linux;
  };
})