diff --git a/flake.nix b/flake.nix index ebf4765..74e591f 100644 --- a/flake.nix +++ b/flake.nix @@ -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; };