fix(package): expose desktop name in meta attribute (#90)

Reintroduced because it was removed in this commit:
e6c66542e6.
This commit is contained in:
Luis Quiñones
2025-08-17 17:26:56 -05:00
committed by GitHub
parent 834fd6e8bb
commit 557da38fba

View File

@@ -54,6 +54,8 @@
pname = "zen-${name}-bin-unwrapped";
desktopName = "Zen Browser${lib.optionalString (name == "twilight") " Twilight"}";
installDarwin = ''
runHook preInstall
@@ -101,15 +103,23 @@ in
src =
if stdenv.hostPlatform.isDarwin
then fetchurl {inherit (variant) url; hash = variant.sha256;}
else fetchzip {inherit (variant) url; hash = variant.sha256;};
then
fetchurl {
inherit (variant) url;
hash = variant.sha256;
}
else
fetchzip {
inherit (variant) url;
hash = variant.sha256;
};
sourceRoot = lib.optionalString stdenv.hostPlatform.isDarwin ".";
desktopItems = [
(makeDesktopItem {
name = binaryName;
desktopName = "Zen Browser${lib.optionalString (name == "twilight") " Twilight"}";
inherit desktopName;
exec = "${binaryName} %u";
icon = binaryName;
type = "Application";
@@ -208,5 +218,6 @@ in
platforms = builtins.attrNames mozillaPlatforms;
hydraPlatforms = [];
mainProgram = binaryName;
inherit desktopName;
};
}