pycharm: add icon in desktop file
This commit is contained in:
parent
c78e6df8e0
commit
bebdea6ac9
@ -16,6 +16,7 @@ let
|
|||||||
desktopName = "PyCharm";
|
desktopName = "PyCharm";
|
||||||
genericName = "Powerful Python and Django IDE";
|
genericName = "Powerful Python and Django IDE";
|
||||||
categories = "Application;Development;";
|
categories = "Application;Development;";
|
||||||
|
icon = "pycharm";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ makeWrapper patchelf p7zip ];
|
buildInputs = [ makeWrapper patchelf p7zip ];
|
||||||
@ -39,8 +40,9 @@ let
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -vp "$out/bin" "$out/$name"
|
mkdir -vp "$out/bin" "$out/$name" "$out/share/pixmaps"
|
||||||
cp -va . "$out/$name"
|
cp -va . "$out/$name"
|
||||||
|
ln -s "$out/$name/bin/pycharm.png" "$out/share/pixmaps/"
|
||||||
|
|
||||||
jdk="${jdk}/lib/openjdk"
|
jdk="${jdk}/lib/openjdk"
|
||||||
makeWrapper "$out/$name/bin/pycharm.sh" "$out/bin/pycharm" \
|
makeWrapper "$out/$name/bin/pycharm.sh" "$out/bin/pycharm" \
|
||||||
@ -52,12 +54,12 @@ let
|
|||||||
cp -a "${desktopItem}"/* "$out"
|
cp -a "${desktopItem}"/* "$out"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://www.jetbrains.com/pycharm/";
|
homepage = "https://www.jetbrains.com/pycharm/";
|
||||||
inherit description;
|
inherit description;
|
||||||
inherit license;
|
inherit license;
|
||||||
maintainers = [ stdenv.lib.maintainers.jgeerds ];
|
maintainers = [ maintainers.jgeerds ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user