> nimble install docopt
> echo "import docopt" > test.nim
> nim c test.nim
Nim's package management isn't exactly rocket surgery. Even if you use nimble as a build tool it's still extremely straight forward:
> nimble init
> echo 'require "docopt"' >> projectname.nimble
> echo "import docopt" > src/projectname.nim
> nimble build
Notice the lack of explicitly installing docopt, nimble build takes care of unmet dependencies.
That's it! Now you know everything there is to know about Nim package management. (Not quite, but close enough)