mirror of
https://github.com/Cian-H/zen-browser-flake.git
synced 2026-05-04 06:41:43 +01:00
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:
@@ -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 = ''
|
||||
|
||||
Reference in New Issue
Block a user