mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-05-14 14:55:05 +02:00
ZeNixComputa: Use the cura appimage
This commit is contained in:
parent
7e5be85563
commit
984a96f649
3 changed files with 37 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
{
|
||||
home.username = "${config.extraInfo.username}";
|
||||
home.homeDirectory = "/home/${config.extraInfo.username}";
|
||||
home.packages = with pkgs; [ cura ];
|
||||
home.packages = with pkgs; [ cura-appimage ];
|
||||
|
||||
programs.git = {
|
||||
userName = "traxys";
|
||||
|
|
|
|||
35
pkgs/cura/default.nix
Normal file
35
pkgs/cura/default.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
appimageTools,
|
||||
fetchurl,
|
||||
lib,
|
||||
}:
|
||||
appimageTools.wrapType2 rec {
|
||||
pname = "cura-appimage";
|
||||
version = "5.7.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/Ultimaker/Cura/releases/download/${version}/UltiMaker-Cura-${version}-linux-X64.AppImage";
|
||||
sha256 = "sha256-LZMD0fo8TSlDEJspvTka724lYq5EgrOlDkwMktXqATw=";
|
||||
};
|
||||
|
||||
extraInstallCommands =
|
||||
let
|
||||
appimageContents = appimageTools.extractType2 { inherit pname version src; };
|
||||
in
|
||||
# sh
|
||||
''
|
||||
ls -la ${appimageContents}
|
||||
install -m 444 -D ${appimageContents}/com.ultimaker.cura.desktop $out/share/applications/com.ultimaker.cura.desktop
|
||||
substituteInPlace $out/share/applications/com.ultimaker.cura.desktop --replace-fail 'Exec=UltiMaker-Cura' 'Exec=${pname}'
|
||||
install -m 444 -D ${appimageContents}/cura-icon.png \
|
||||
$out/share/icons/hicolor/256x256/apps/cura-icon.png
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/Ultimaker/Cura";
|
||||
description = "3D printer / slicing GUI built on top of the Uranium framework";
|
||||
license = licenses.lgpl3Plus;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ traxys ];
|
||||
};
|
||||
}
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
{
|
||||
packages = {
|
||||
wowup = pkgs.callPackage ./wowup.nix { };
|
||||
cura-appimage = pkgs.callPackage ./cura { };
|
||||
simulationcraft = pkgs.callPackage ./simulationcraft.nix {
|
||||
simulationcraft-src = inputs.simulationcraft;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue