mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-18 22:55:52 +05:30
Appimage Cura
This commit is contained in:
parent
d9bcbd5f44
commit
b4a99c6090
|
@ -119,24 +119,31 @@
|
||||||
yt-dlp
|
yt-dlp
|
||||||
blender-hip
|
blender-hip
|
||||||
libresprite
|
libresprite
|
||||||
# cura is moderately broken on wayland, so use xwayland
|
(pkgs.appimageTools.wrapType2 {
|
||||||
(pkgs-stable.cura.overrideAttrs (oldAttrs: {
|
name = "Cura";
|
||||||
postInstall = oldAttrs.postInstall + ''cp -rf ${(pkgs.makeDesktopItem {
|
src = fetchurl {
|
||||||
name = "com.ultimaker.cura";
|
url = "https://github.com/Ultimaker/Cura/releases/download/5.8.1/UltiMaker-Cura-5.8.1-linux-X64.AppImage";
|
||||||
icon = "cura-icon";
|
hash = "sha256-VLd+V00LhRZYplZbKkEp4DXsqAhA9WLQhF933QAZRX0=";
|
||||||
desktopName = "Cura";
|
};
|
||||||
exec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura %F";
|
extraPkgs = pkgs: with pkgs; [];
|
||||||
tryExec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura";
|
})
|
||||||
terminal = false;
|
#(pkgs-stable.cura.overrideAttrs (oldAttrs: {
|
||||||
type = "Application";
|
# postInstall = oldAttrs.postInstall + ''cp -rf ${(pkgs.makeDesktopItem {
|
||||||
categories = ["Graphics"];
|
# name = "com.ultimaker.cura";
|
||||||
mimeTypes = ["model/stl" "application/vnd.ms-3mfdocument" "application/prs.wavefront-obj"
|
# icon = "cura-icon";
|
||||||
"image/bmp" "image/gif" "image/jpeg" "image/png" "text/x-gcode" "application/x-amf"
|
# desktopName = "Cura";
|
||||||
"application/x-ply" "application/x-ctm" "model/vnd.collada+xml" "model/gltf-binary"
|
# exec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura %F";
|
||||||
"model/gltf+json" "model/vnd.collada+xml+zip"];
|
# tryExec = "env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura";
|
||||||
})}/share/applications $out/share'';
|
# terminal = false;
|
||||||
}))
|
# type = "Application";
|
||||||
(pkgs.writeShellScriptBin "curax" ''env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura $@'')
|
# categories = ["Graphics"];
|
||||||
|
# mimeTypes = ["model/stl" "application/vnd.ms-3mfdocument" "application/prs.wavefront-obj"
|
||||||
|
# "image/bmp" "image/gif" "image/jpeg" "image/png" "text/x-gcode" "application/x-amf"
|
||||||
|
# "application/x-ply" "application/x-ctm" "model/vnd.collada+xml" "model/gltf-binary"
|
||||||
|
# "model/gltf+json" "model/vnd.collada+xml+zip"];
|
||||||
|
# })}/share/applications $out/share'';
|
||||||
|
#}))
|
||||||
|
#(pkgs.writeShellScriptBin "curax" ''env QT_QPA_PLATFORM=xcb ${pkgs-stable.cura}/bin/cura $@'')
|
||||||
(pkgs-stable.curaengine_stable)
|
(pkgs-stable.curaengine_stable)
|
||||||
openscad
|
openscad
|
||||||
(stdenv.mkDerivation {
|
(stdenv.mkDerivation {
|
||||||
|
|
Loading…
Reference in a new issue