plater: improve plater-gui
This commit is contained in:
parent
16c61881fd
commit
3f7d4ad152
1 changed files with 18 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue