Compare commits

..

No commits in common. "0e044f2daafc892d2f9c5464f7f5725aea7930af" and "38b6c47b4a42bbdf534f6c75c507b0ccdaeac6e0" have entirely different histories.

3 changed files with 3 additions and 143 deletions

View file

@ -1,3 +0,0 @@
{ pkgs ? import <nixpkgs> {} }:
pkgs.callPackage ./package.nix {}

View file

@ -1,137 +0,0 @@
{
lib,
stdenv,
fetchurl,
autoPatchelfHook,
dpkg,
buildFHSEnv,
gtk3,
glib,
glibc,
libGL,
mesa,
cairo,
pango,
gdk-pixbuf,
atk,
dbus,
libX11,
libXext,
libXrender,
libXtst,
libXi,
libXfixes,
libxcb,
libXcomposite,
libXcursor,
libXdamage,
libXrandr,
libXScrnSaver,
alsa-lib,
udev,
nspr,
nss,
expat,
cups,
at-spi2-atk,
at-spi2-core,
libdrm,
wayland,
libxkbcommon,
webkitgtk_4_1,
openssl,
zlib,
libpng,
libjpeg,
freetype,
fontconfig,
sqlite,
curl,
}:
let
unwrapped = stdenv.mkDerivation rec {
pname = "anycubic-slicer-next-unwrapped";
version = "1.3.7171-20250928";
src = fetchurl {
url = "https://cdn-universe-slicer.anycubic.com/prod/dists/noble/main/binary-amd64/AnycubicSlicerNext-1.3.7171_20250928_162543-Ubuntu_24_04_2_LTS.deb";
hash = "sha256-oB/oY8xO/o+UOXR4K/yy0dAIrjB3ztBl9j24k9ceH5I=";
};
nativeBuildInputs = [ autoPatchelfHook dpkg ];
buildInputs = [
gtk3 glib glibc libGL mesa cairo pango gdk-pixbuf atk dbus
libX11 libXext libXrender libXtst libXi libXfixes libxcb
libXcomposite libXcursor libXdamage libXrandr libXScrnSaver
alsa-lib udev nspr nss expat cups at-spi2-atk at-spi2-core
libdrm wayland libxkbcommon webkitgtk_4_1 openssl zlib libpng
libjpeg freetype fontconfig sqlite curl
];
autoPatchelfLibs = [ "lib/anycubic-slicer-next" ];
unpackPhase = "dpkg-deb -x $src unpacked";
installPhase = ''
runHook preInstall
install -Dm755 unpacked/usr/bin/AnycubicSlicerNext \
$out/lib/anycubic-slicer-next/AnycubicSlicerNext
find unpacked -name '*.so' -o -name '*.so.*' | while read f; do
install -Dm755 "$f" $out/lib/anycubic-slicer-next/$(basename "$f")
done
mkdir -p $out/share
cp -r unpacked/usr/share/AnycubicSlicerNext $out/share/AnycubicSlicerNext
runHook postInstall
'';
};
runtimeLibs = [
gtk3 glib glibc libGL mesa cairo pango gdk-pixbuf atk dbus
libX11 libXext libXrender libXtst libXi libXfixes libxcb
libXcomposite libXcursor libXdamage libXrandr libXScrnSaver
alsa-lib udev nspr nss expat cups at-spi2-atk at-spi2-core
libdrm wayland libxkbcommon webkitgtk_4_1 openssl zlib libpng
libjpeg freetype fontconfig sqlite curl
];
in buildFHSEnv {
name = "AnycubicSlicerNext";
targetPkgs = _: runtimeLibs ++ [ unwrapped ];
extraBwrapArgs = [
"--ro-bind" "${unwrapped}/share/AnycubicSlicerNext" "/usr/share/AnycubicSlicerNext"
];
runScript = "/lib/anycubic-slicer-next/AnycubicSlicerNext";
extraInstallCommands = ''
mkdir -p $out/share/applications
cat > $out/share/applications/AnycubicSlicerNext.desktop << EOF
[Desktop Entry]
Name=Anycubic Slicer Next
Comment=G-code slicer for Anycubic 3D printers
Exec=$out/bin/AnycubicSlicerNext
Icon=AnycubicSlicer
Terminal=false
Type=Application
Categories=Graphics;3DGraphics;Engineering;
StartupNotify=true
EOF
'';
meta = with lib; {
description = "G-code slicer for Anycubic 3D printers, based on OrcaSlicer";
homepage = "https://wiki.anycubic.com/en/software-and-app/anycubic-slicer-next-linux";
license = licenses.agpl3Only;
sourceProvenance = with sourceTypes; [ binaryNativeCode ];
platforms = [ "x86_64-linux" ];
mainProgram = "AnycubicSlicerNext";
maintainers = [ ];
};
}

View file

@ -92,8 +92,8 @@
wasistlos wasistlos
vesktop vesktop
#geary #geary
pkgs-unstable.mailspring #mailspring
#pkgs-unstable.thunderbird pkgs-unstable.thunderbird
#tutanota-desktop #tutanota-desktop
pkgs-unstable.protonmail-desktop pkgs-unstable.protonmail-desktop
teams-for-linux teams-for-linux
@ -181,7 +181,6 @@
# CAD&3D # # CAD&3D #
orca-slicer orca-slicer
#freecad #freecad
(callPackage ./pkgs/anycubic-slicer-next/default.nix {})
]; ];
# Enable Flaktpak # Enable Flaktpak
@ -196,6 +195,7 @@
"com.anydesk.Anydesk" "com.anydesk.Anydesk"
"com.github.iwalton3.jellyfin-media-player" "com.github.iwalton3.jellyfin-media-player"
"com.sweethome3d.Sweethome3d" "com.sweethome3d.Sweethome3d"
"com.tutanota.Tutanota"
]; ];
services.hardware.openrgb.enable = true; services.hardware.openrgb.enable = true;