Desktop entry

This commit is contained in:
AG 2025-10-20 16:00:08 +02:00
parent ec0442f7b3
commit d5e447a086
1 changed files with 18 additions and 1 deletions

View File

@ -14,6 +14,7 @@ pkgs.stdenv.mkDerivation rec {
makeWrapper makeWrapper
jdk17 jdk17
unzip unzip
copyDesktopItems
]; ];
buildInputs = with pkgs; [ buildInputs = with pkgs; [
@ -77,12 +78,28 @@ EOF
]}" ]}"
done done
# Make sure shell scripts are executable
chmod +x $out/opt/apache-hop/*.sh 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 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; { meta = with pkgs.lib; {
description = "Apache Hop - Data Integration Platform"; description = "Apache Hop - Data Integration Platform";
homepage = "https://hop.apache.org/"; homepage = "https://hop.apache.org/";