diff --git a/pkgs/applications/science/spyder/default.nix b/pkgs/applications/science/spyder/default.nix index 30ef9f0efbc9..6c0125e4b850 100644 --- a/pkgs/applications/science/spyder/default.nix +++ b/pkgs/applications/science/spyder/default.nix @@ -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 = ''