diff --git a/pkgs/apache-hop/default.nix b/pkgs/apache-hop/default.nix index 19b3a0b..9ebd8cd 100644 --- a/pkgs/apache-hop/default.nix +++ b/pkgs/apache-hop/default.nix @@ -14,6 +14,7 @@ pkgs.stdenv.mkDerivation rec { makeWrapper jdk17 unzip + copyDesktopItems ]; buildInputs = with pkgs; [ @@ -77,12 +78,28 @@ EOF ]}" done - # Make sure shell scripts are executable chmod +x $out/opt/apache-hop/*.sh + mkdir -p $out/share/applications + mkdir -p $out/share/pixmaps + + cp $out/opt/apache-hop/hop.ico $out/share/pixmaps/hop.ico + runHook postInstall ''; + desktopItems = [ + (pkgs.makeDesktopItem { + name = "apache-hop"; + desktopName = "Apache Hop"; + comment = "Data Integration Platform"; + exec = "hop-gui"; + icon = "hop"; + categories = [ "Development" "Database" ]; + mimeTypes = [ "application/x-hop-workflow" "application/x-hop-pipeline" ]; + }) + ]; + meta = with pkgs.lib; { description = "Apache Hop - Data Integration Platform"; homepage = "https://hop.apache.org/";