mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
spyder: create desktop menu item
This commit is contained in:
parent
78169ec020
commit
36c6a05fd9
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user