mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
slic3r-prusa3d: Create desktop file
This commit is contained in:
parent
8e20de1d52
commit
3cc341d6f2
1 changed files with 17 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ stdenv, lib, fetchFromGitHub, makeWrapper, which, cmake, perl, perlPackages,
|
{ stdenv, lib, fetchFromGitHub, makeWrapper, which, cmake, perl, perlPackages,
|
||||||
boost, tbb, wxGTK30, pkgconfig, gtk3, fetchurl, gtk2, libGLU,
|
boost, tbb, wxGTK30, pkgconfig, gtk3, fetchurl, gtk2, libGLU,
|
||||||
glew, eigen, curl, gtest, nlopt, pcre, xorg }:
|
glew, eigen, curl, gtest, nlopt, pcre, xorg, makeDesktopItem }:
|
||||||
let
|
let
|
||||||
AlienWxWidgets = perlPackages.buildPerlPackage rec {
|
AlienWxWidgets = perlPackages.buildPerlPackage rec {
|
||||||
name = "Alien-wxWidgets-0.69";
|
name = "Alien-wxWidgets-0.69";
|
||||||
|
@ -112,6 +112,12 @@ stdenv.mkDerivation rec {
|
||||||
mkdir -p $out/bin/var
|
mkdir -p $out/bin/var
|
||||||
cp -r ../resources/icons/* $out/bin/var/
|
cp -r ../resources/icons/* $out/bin/var/
|
||||||
cp -r ../resources $out/bin/
|
cp -r ../resources $out/bin/
|
||||||
|
|
||||||
|
|
||||||
|
mkdir -p "$out/share/pixmaps/"
|
||||||
|
ln -s "$out/bin/var/Slic3r.png" "$out/share/pixmaps/slic3r-prusa.png"
|
||||||
|
mkdir -p "$out/share/applications"
|
||||||
|
cp "$desktopItem"/share/applications/* "$out/share/applications/"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
|
@ -121,6 +127,16 @@ stdenv.mkDerivation rec {
|
||||||
rev = "version_${version}";
|
rev = "version_${version}";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
name = "slic3r-Prusa-Edition";
|
||||||
|
exec = "slic3r-prusa3d";
|
||||||
|
icon = "slic3r-prusa";
|
||||||
|
comment = "G-code generator for 3D printers";
|
||||||
|
desktopName = "Slic3r Prusa Edition";
|
||||||
|
genericName = "3D printer tool";
|
||||||
|
categories = "Application;Development;";
|
||||||
|
};
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "G-code generator for 3D printer";
|
description = "G-code generator for 3D printer";
|
||||||
homepage = https://github.com/prusa3d/Slic3r;
|
homepage = https://github.com/prusa3d/Slic3r;
|
||||||
|
|
Loading…
Reference in a new issue