mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-27 05:43:50 +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
|
# mandatory
|
||||||
, pyside
|
, pyside
|
||||||
# recommended
|
# recommended
|
||||||
@ -23,6 +23,25 @@ buildPythonPackage rec {
|
|||||||
# There is no test for spyder
|
# There is no test for spyder
|
||||||
doCheck = false;
|
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 = {
|
meta = {
|
||||||
description = "Scientific PYthon Development EnviRonment (SPYDER)";
|
description = "Scientific PYthon Development EnviRonment (SPYDER)";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user