diff --git a/flake.nix b/flake.nix index 35174c5..4916461 100644 --- a/flake.nix +++ b/flake.nix @@ -65,12 +65,16 @@ // { inherit cargoArtifacts; - nativeBuildInputs = commonArgs.nativeBuildInputs ++ [ - pkgs.autoPatchelfHook - ]; + nativeBuildInputs = + commonArgs.nativeBuildInputs + ++ [ + pkgs.autoPatchelfHook + ] + ++ lib.optional pkgs.stdenv.hostPlatform.isLinux pkgs.makeBinaryWrapper; buildInputs = commonArgs.buildInputs ++ [ pkgs.libgcc + pkgs.zenity ]; runtimeDependencies = dlDeps; @@ -80,6 +84,10 @@ postFixup = '' mkdir -p "$out/share/applications" ln -s "${desktopItem}"/share/applications/* "$out/share/applications/" + '' + + lib.optionalString pkgs.stdenv.hostPlatform.isLinux /* sh */ '' + wrapProgram $out/${name} --inherit-argv0 \ + --prefix PATH : ${lib.makeBinPath [ pkgs.zenity ]} ''; } );