Skip to content

Missing dependencies in AppImage on NixOS 25.11 #529

@Kreyren

Description

@Kreyren

Is there an existing issue for this problem?

  • I have searched the existing issues

CrealityPrint Version

7.0.0.4127

Operating System (OS)

Linux

OS Version

NixOS 25.11 (NiXium Managed)

Additional system information

OS: NixOS 25.11.20260102.64049ca (Xantusia) x86_64
Host: Acer VA70_HW
Kernel: 6.12.63
Uptime: 16 mins
Packages: 1263 (nix-system), 2938 (nix-user), 14 (flatpak)
Shell: bash 5.3.3
Resolution: 1920x1080
DE: GNOME 49.2 (Wayland)
WM: Mutter
WM Theme: Adwaita
Theme: Adw-gtk3-dark [GTK2/3]
Icons: Adwaita [GTK2/3]
Terminal: alacritty
CPU: Intel i7-4702MQ (4) @ 3.200GHz
GPU: Intel 4th Gen Core Processor
GPU: NVIDIA GeForce GTX 760M
Memory: 5877MiB / 15874MiB

Printer

Creality K1 MAX

How to reproduce

Should be self-evident, let me know if you need repro

Actual results

$ ~/Downloads/CrealityPrint-V7.0.0.4127-x86_64-Release.AppImage
CrealityPrint-V7.0.0.4127-x86_64-Release.AppImage installed in /home/kreyren/.cache/appimage-run/277a154a9ea6479aa69bdccd705413a8af80d170094a6558cc2de129640e8ebe
/home/kreyren/.cache/appimage-run/277a154a9ea6479aa69bdccd705413a8af80d170094a6558cc2de129640e8ebe/bin/CrealityPrint: error while loading shared libraries: libdeflate.so.0: cannot open shared object file: No such file or directory
$ ~/Downloads/CrealityPrint-V7.0.0.4127-x86_64-Release.AppImage
CrealityPrint-V7.0.0.4127-x86_64-Release.AppImage installed in /home/kreyren/.cache/appimage-run/277a154a9ea6479aa69bdccd705413a8af80d170094a6558cc2de129640e8ebe
/home/kreyren/.cache/appimage-run/277a154a9ea6479aa69bdccd705413a8af80d170094a6558cc2de129640e8ebe/bin/CrealityPrint: error while loading shared libraries: libbz2.so.1.0: cannot open shared object file: No such file or directory

Having to add:

{ lib, config, pkgs, ... }:

#! System Appimage Management

let
	inherit (lib) mkIf;
in mkIf config.programs.appimage.enable {
	programs.appimage = {
		binfmt = true;
		package = pkgs.appimage-run.override {
			extraPkgs = pkgs: [
				# Some packages need this dependency, added for utility - https://github.com/NixOS/nixpkgs/issues/350383#issuecomment-2433316461
				pkgs.libepoxy

+				# Required by CrealityPrint 7.0.0.4127
+				pkgs.libdeflate
+				pkgs.bzip2
			];
		};
	};
}

Which is still not sufficient as the CrealityPrint is not accepting the libbz2.so.1.0 provided by bzip2 package:

bzip2.out 0 s /nix/store/xgavznqg1ay2hycpp7yy9ia1n751jcla-bzip2-1.0.8/lib/libbz2.so.1.0

Expected results

Open The Slicer and work without assumption that the distribution will include common dependencies as impermanent systems prefer minimalism.

Project file & Debug log uploads

Not Relevant

Checklist of files to include

  • Log file
  • Project file

Anything else?

OrcaSlicer doesn't seem to have this issue beyond missing libwebkit2gtk-4.1.so.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions