Compiling C binaries with a Kotlin script

I’m able to compile C binaries by using the Groovy DSL, as described on the guides.
However, I’m not able to do so by using the Kotlin DSL. What’s the kts equivalent of:

model { 
    components {
        main(NativeExecutableSpec)  
    }
}