NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.62k stars 13.77k forks source link

Package request: Orca Slicer Beta [v2.1.0-beta] #318386

Closed SelfhostedPro closed 2 months ago

SelfhostedPro commented 3 months ago

Project description 3d Printer Slicing Software

I know you have an entry for the stable version but there's quite a few cool features that come out in beta and may take a while before coming into a stable build. I have tried to override/overlay with no luck with that due to gcc errors that I'm not familiar enough to fix so I'd also be up to asking for help there in the appropriate channels.

here is how I was trying to do my custom package.

Metadata


Add a :+1: reaction to issues you find important.

EBADBEEF commented 3 months ago

In case anyone else finds it useful, I use the released appimage binary. Building this program from source is pretty challenging, using cmake ExternalProject_Add to fetch a lot of deps from URLs.

Here is my nix file for the appimage:

{ lib , stdenv , fetchurl , appimageTools
, webkitgtk
}:
let
  version = "2.1.0-beta";
in appimageTools.wrapType2 {
  pname = "orca-slicer";
  inherit version;

  src = fetchurl {
    url = "https://github.com/SoftFever/OrcaSlicer/releases/download/v${version}/OrcaSlicer_Linux_V${version}.AppImage";
    hash = "sha256-fkpd+jiotd3P5BycyE/GO5jN2eNlE7s2sB8sbjAjgjY=";
  };

  extraPkgs = pkgs: with pkgs; [ webkitgtk ];

  profile = ''
    export GST_PLUGIN_SYSTEM_PATH_1_0=/usr/lib/gstreamer-1.0
  '';
}
oddlama commented 2 months ago

Orca slicer has been updated to 2.1.1 in nixpkgs so this can be closed. We can update to beta in the future if it makes sense for a particular release.