diff --git a/pkgs/development/compilers/dotnet/wrapper.nix b/pkgs/development/compilers/dotnet/wrapper.nix index d328dbf97b7e..d268476c2c14 100644 --- a/pkgs/development/compilers/dotnet/wrapper.nix +++ b/pkgs/development/compilers/dotnet/wrapper.nix @@ -204,6 +204,13 @@ stdenvNoCC.mkDerivation (finalAttrs: { runtime = null; run = checkConsoleOutput "$src/bin/test"; }; + + ready-to-run = mkConsoleTest { + name = "ready-to-run"; + usePackageSource = true; + build = "dotnet publish --use-current-runtime -p:PublishReadyToRun=true -o $out/bin"; + run = checkConsoleOutput "$src/bin/test"; + }; } // lib.optionalAttrs finalAttrs.finalPackage.hasILCompiler { aot = mkConsoleTest {