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