Nim won't automatically do things on compile time. You have to explicitly tell it to. Fortunately this is as easy as using the result in a compile-time context. For example by assigning it to a const
or explicitly putting everything in a static
block.