apache-directory-studio: add missing desktop item (#33893)

* apache-directory-studio: add missing desktop item

* apache-directory-studio: use install command to copy icons

authored by Florian Klink and committed by Jörg Thalheim 994e5ddd 4c63cc8c

+14 -1
+14 -1
pkgs/applications/networking/apache-directory-studio/default.nix
··· 1 - { stdenv, fetchurl, xorg, jre, makeWrapper }: 2 3 let 4 rpath = stdenv.lib.makeLibraryPath (with xorg; [ 5 libXtst 6 ]); 7 in 8 stdenv.mkDerivation rec { 9 name = "apache-directory-studio-${version}"; ··· 36 "$out/bin/ApacheDirectoryStudio" \ 37 --prefix PATH : "${jre}/bin" \ 38 --prefix LD_LIBRARY_PATH : "${rpath}" 39 ''; 40 41 meta = with stdenv.lib; {
··· 1 + { stdenv, fetchurl, xorg, jre, makeWrapper, makeDesktopItem }: 2 3 let 4 rpath = stdenv.lib.makeLibraryPath (with xorg; [ 5 libXtst 6 ]); 7 + 8 + desktopItem = makeDesktopItem { 9 + name = "apache-directory-studio"; 10 + exec = "ApacheDirectoryStudio"; 11 + icon = "apache-directory-studio"; 12 + comment = "Eclipse-based LDAP browser and directory client"; 13 + desktopName = "Apache Directory Studio"; 14 + genericName = "Apache Directory Studio"; 15 + categories = "Java;Network"; 16 + }; 17 + 18 in 19 stdenv.mkDerivation rec { 20 name = "apache-directory-studio-${version}"; ··· 47 "$out/bin/ApacheDirectoryStudio" \ 48 --prefix PATH : "${jre}/bin" \ 49 --prefix LD_LIBRARY_PATH : "${rpath}" 50 + install -D icon.xpm "$out/share/pixmaps/apache-directory-studio.xpm" 51 + install -D -t "$out/share/applications" ${desktopItem}/share/applications/* 52 ''; 53 54 meta = with stdenv.lib; {