mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-03-02 10:41:04 +01:00
Use cura from NUR
This commit is contained in:
parent
a05460bfe2
commit
a8885f0e13
3 changed files with 1 additions and 36 deletions
|
|
@ -4,6 +4,7 @@
|
|||
plasma5Packages.kdeconnect-kde
|
||||
kdePackages.kdenlive
|
||||
glaurung
|
||||
nur.repos.xeals.cura5
|
||||
anki-bin
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,35 +0,0 @@
|
|||
{
|
||||
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,7 +10,6 @@
|
|||
{
|
||||
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