feat(#2): Add a Desktop Entry

This allows it to show in application start menus. It doesn't have
icons yet but will handle in a future commit.
This commit is contained in:
Marce Coll
2024-08-21 22:39:38 +02:00
parent d1192c280d
commit c0383eedf5
3 changed files with 60 additions and 4 deletions
+8 -4
View File
@@ -26,16 +26,20 @@
name = "zen-browser";
src = builtins.fetchTarball {
url = downloadUrl;
sha256 = "sha256:1z81dg3xgfpkyj501gflx8lw7d8124iqwm27zqfja2b47zf4ai2x";
};
url = downloadUrl;
sha256 = "sha256:1z81dg3xgfpkyj501gflx8lw7d8124iqwm27zqfja2b47zf4ai2x";
};
desktopSrc = ./.;
phases = [ "installPhase" "fixupPhase" ];
nativeBuildInputs = [ pkgs.makeWrapper ] ;
nativeBuildInputs = [ pkgs.makeWrapper pkgs.copyDesktopItems ] ;
installPhase = ''
mkdir -p $out/bin && cp -r $src/* $out/bin
mkdir -p $out/share/applications
install -D $desktopSrc/zen.desktop $out/share/applications/dev.zen.Zen.desktop
'';
fixupPhase = ''