build: add desktopItem
This commit is contained in:
parent
d564d1ab6d
commit
6bf711eede
1 changed files with 11 additions and 0 deletions
11
flake.nix
11
flake.nix
|
|
@ -23,6 +23,13 @@
|
||||||
name = cargoToml.package.name;
|
name = cargoToml.package.name;
|
||||||
|
|
||||||
bin =
|
bin =
|
||||||
|
let
|
||||||
|
desktopItem = pkgs.makeDesktopItem {
|
||||||
|
inherit name;
|
||||||
|
desktopName = name;
|
||||||
|
exec = name;
|
||||||
|
};
|
||||||
|
in
|
||||||
{
|
{
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
|
|
||||||
|
|
@ -63,6 +70,10 @@
|
||||||
|
|
||||||
cargoLock.lockFile = "${src}/Cargo.lock";
|
cargoLock.lockFile = "${src}/Cargo.lock";
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
cp -rs "${desktopItem}"/* "$out"
|
||||||
|
'';
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
__structuredAttrs = true;
|
__structuredAttrs = true;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue