Merge pull request #105860 from lovesegfault/plater-improvements

plater: improve plater-gui
This commit is contained in:
Sandro 2020-12-07 20:02:45 +01:00 committed by GitHub
commit d1d1772b93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,7 +3,9 @@
, fetchFromGitHub
, lib
, libGLU
, makeDesktopItem
, qtbase
, wrapQtAppsHook
}:
mkDerivation rec {
@ -17,9 +19,24 @@ mkDerivation rec {
sha256 = "0r20mbzd16zv1aiadjqdy7z6sp09rr6lgfxhvir4ll3cpakkynr4";
};
nativeBuildInputs = [ cmake ];
nativeBuildInputs = [ cmake wrapQtAppsHook ];
buildInputs = [ libGLU qtbase ];
desktopItem = makeDesktopItem {
name = pname;
exec = pname;
icon = pname;
desktopName = "Ideamaker";
genericName = meta.description;
categories = "Utility;Engineering;";
};
postInstall = ''
mkdir -p $out/share/pixmaps
ln -s ${desktopItem}/share/applications $out/share/
cp $src/gui/img/plater.png $out/share/pixmaps/${pname}.png
'';
meta = with lib; {
description = "3D-printer parts placer and plate generator";
homepage = "https://github.com/Rhoban/Plater";