spyder: create desktop menu item

This commit is contained in:
Bjørn Forsman 2013-05-05 13:27:28 +02:00
parent 78169ec020
commit 36c6a05fd9

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, unzip, buildPythonPackage
{ stdenv, fetchurl, unzip, buildPythonPackage, makeDesktopItem
# mandatory
, pyside
# recommended
@ -23,6 +23,25 @@ buildPythonPackage rec {
# There is no test for spyder
doCheck = false;
desktopItem = makeDesktopItem {
name = "Spyder";
exec = "spyder";
icon = "spyder";
comment = "Scientific Python Development Environment";
desktopName = "Spyder";
genericName = "Python IDE";
categories = "Application;Development;Editor;IDE;";
};
# Create desktop item
postInstall = ''
mkdir -p $out/share/applications
cp $desktopItem/share/applications/* $out/share/applications/
mkdir -p $out/share/icons
cp spyderlib/images/spyder.svg $out/share/icons/
'';
meta = {
description = "Scientific PYthon Development EnviRonment (SPYDER)";
longDescription = ''