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