build: add desktopItem

This commit is contained in:
electria 2026-11-21 17:58:14 -08:00
commit 6bf711eede
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs

View file

@ -23,6 +23,13 @@
name = cargoToml.package.name;
bin =
let
desktopItem = pkgs.makeDesktopItem {
inherit name;
desktopName = name;
exec = name;
};
in
{
rustPlatform,
@ -63,6 +70,10 @@
cargoLock.lockFile = "${src}/Cargo.lock";
postFixup = ''
cp -rs "${desktopItem}"/* "$out"
'';
strictDeps = true;
__structuredAttrs = true;
};