snapmaker-luban: init at 4.0.3

+90
+88
pkgs/applications/misc/snapmaker-luban/default.nix
··· 1 + { lib, stdenv, autoPatchelfHook, makeDesktopItem, copyDesktopItems, wrapGAppsHook, fetchurl 2 + , alsa-lib, at-spi2-atk, at-spi2-core, atk, cairo, cups 3 + , gtk3, nss, glib, dbus, nspr, gdk-pixbuf 4 + , libX11, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext 5 + , libXfixes, libXi, libXrandr, libXrender, libXtst, libxcb, pango 6 + , gcc-unwrapped, udev 7 + }: 8 + 9 + stdenv.mkDerivation rec { 10 + pname = "snapmaker-luban"; 11 + version = "4.0.3"; 12 + 13 + src = fetchurl { 14 + url = "https://github.com/Snapmaker/Luban/releases/download/v${version}/snapmaker-luban-${version}-linux-x64.tar.gz"; 15 + sha256 = "13qk7ssfawjaa5p4mnml4ndzzsqs26qpi76hc9qaipi74ss3jih4"; 16 + }; 17 + 18 + nativeBuildInputs = [ 19 + autoPatchelfHook 20 + wrapGAppsHook 21 + copyDesktopItems 22 + ]; 23 + 24 + buildInputs = [ 25 + alsa-lib 26 + at-spi2-atk 27 + at-spi2-core 28 + cairo 29 + cups 30 + gcc-unwrapped 31 + gtk3 32 + libXdamage 33 + libX11 34 + libXScrnSaver 35 + libXtst 36 + libxcb 37 + nspr 38 + nss 39 + ]; 40 + 41 + libPath = lib.makeLibraryPath [ 42 + stdenv.cc.cc alsa-lib atk at-spi2-atk at-spi2-core cairo cups 43 + gdk-pixbuf glib gtk3 libX11 libXcomposite 44 + libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender 45 + libXtst nspr nss libxcb pango libXScrnSaver udev 46 + ]; 47 + 48 + dontWrapGApps = true; 49 + 50 + installPhase = '' 51 + runHook preInstall 52 + 53 + mkdir -p $out/{bin,opt,share/pixmaps}/ 54 + mv * $out/opt/ 55 + 56 + patchelf --set-interpreter ${stdenv.cc.bintools.dynamicLinker} \ 57 + $out/opt/snapmaker-luban 58 + 59 + wrapProgram $out/opt/snapmaker-luban \ 60 + "''${gappsWrapperArgs[@]}" \ 61 + --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ 62 + --prefix LD_LIBRARY_PATH : ${libPath}:$out/snapmaker-luban 63 + 64 + ln -s $out/opt/snapmaker-luban $out/bin/snapmaker-luban 65 + ln -s $out/opt/resources/app/app/resources/images/snap-luban-logo-64x64.png $out/share/pixmaps/snapmaker-luban.png 66 + 67 + runHook postInstall 68 + ''; 69 + 70 + desktopItems = [ 71 + (makeDesktopItem { 72 + name = pname; 73 + exec = "snapmaker-luban"; 74 + icon = "snapmaker-luban"; 75 + desktopName = "Snapmaker Luban"; 76 + genericName = meta.description; 77 + categories = "Office;Printing;"; 78 + }) 79 + ]; 80 + 81 + meta = with lib; { 82 + description = "Snapmaker Luban is an easy-to-use 3-in-1 software tailor-made for Snapmaker machines"; 83 + homepage = "https://github.com/Snapmaker/Luban"; 84 + license = licenses.gpl3; 85 + maintainers = [ maintainers.simonkampe ]; 86 + platforms = [ "x86_64-linux" ]; 87 + }; 88 + }
+2
pkgs/top-level/all-packages.nix
··· 27993 27993 27994 27994 super-slicer-staging = (callPackage ../applications/misc/prusa-slicer/super-slicer.nix { }).staging; 27995 27995 27996 + snapmaker-luban = callPackage ../applications/misc/snapmaker-luban { }; 27997 + 27996 27998 robustirc-bridge = callPackage ../servers/irc/robustirc-bridge { }; 27997 27999 27998 28000 skrooge = libsForQt5.callPackage ../applications/office/skrooge {};