mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
Merge pull request #105860 from lovesegfault/plater-improvements
plater: improve plater-gui
This commit is contained in:
commit
d1d1772b93
@ -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 New Issue
Block a user