diff --git a/pkgs/build-support/build-dotnet-package/default.nix b/pkgs/build-support/build-dotnet-package/default.nix index 3d24f6fb4340..2b1b34429c57 100644 --- a/pkgs/build-support/build-dotnet-package/default.nix +++ b/pkgs/build-support/build-dotnet-package/default.nix @@ -102,8 +102,9 @@ attrsOrig @ mkdir -p "$out"/bin commandName="$(basename -s .exe "$(echo "$exe" | tr "[A-Z]" "[a-z]")")" makeWrapper \ - "${mono}/bin/mono \"$exe\"" \ + "${mono}/bin/mono" \ "$out"/bin/"$commandName" \ + --add-flags "\"$exe\"" \ ''${makeWrapperArgs} done done