Skip to content

Commit

Permalink
apache-directory-studio: add missing desktop item (#33893)
Browse files Browse the repository at this point in the history
* apache-directory-studio: add missing desktop item

* apache-directory-studio: use install command to copy icons
  • Loading branch information
flokli authored and Mic92 committed Jan 15, 2018
1 parent 4c63cc8 commit 994e5dd
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion pkgs/applications/networking/apache-directory-studio/default.nix
@@ -1,9 +1,20 @@
{ stdenv, fetchurl, xorg, jre, makeWrapper }:
{ stdenv, fetchurl, xorg, jre, makeWrapper, makeDesktopItem }:

let
rpath = stdenv.lib.makeLibraryPath (with xorg; [
libXtst
]);

desktopItem = makeDesktopItem {
name = "apache-directory-studio";
exec = "ApacheDirectoryStudio";
icon = "apache-directory-studio";
comment = "Eclipse-based LDAP browser and directory client";
desktopName = "Apache Directory Studio";
genericName = "Apache Directory Studio";
categories = "Java;Network";
};

in
stdenv.mkDerivation rec {
name = "apache-directory-studio-${version}";
Expand Down Expand Up @@ -36,6 +47,8 @@ stdenv.mkDerivation rec {
"$out/bin/ApacheDirectoryStudio" \
--prefix PATH : "${jre}/bin" \
--prefix LD_LIBRARY_PATH : "${rpath}"
install -D icon.xpm "$out/share/pixmaps/apache-directory-studio.xpm"
install -D -t "$out/share/applications" ${desktopItem}/share/applications/*
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit 994e5dd

Please sign in to comment.