diff --git a/flake.nix b/flake.nix index 74e591f..77ad23c 100644 --- a/flake.nix +++ b/flake.nix @@ -23,13 +23,6 @@ name = cargoToml.package.name; bin = - let - desktopItem = pkgs.makeDesktopItem { - inherit name; - desktopName = name; - exec = name; - }; - in { rustPlatform, @@ -70,9 +63,17 @@ cargoLock.lockFile = "${src}/Cargo.lock"; - postFixup = '' - cp -rs "${desktopItem}"/* "$out" - ''; + postFixup = + let + desktopItem = pkgs.makeDesktopItem { + inherit name; + desktopName = name; + exec = name; + }; + in + /* sh */ '' + cp -rs "${desktopItem}"/* "$out" + ''; strictDeps = true; __structuredAttrs = true;