If you look for the list of Nimble packages, you can look at GitHub source for 
some of them to see what other people do.

I typically do: 
    
    
    /foo.nimble
    /nim.cfg
    /src/foo.nim
    /src/foopkg/a.nim
    /src/foopkg/b.nim
    /src/foopkg/c.nim
    
    
    Run

(I've renamed your `main.nim` to `foo.nim` so the executable will be called 
`foo`, there are ways to rename the executable before installing it.)

In `foo.nimble:`
    
    
    srcDir        = "src"
    installDirs   = @["foopkg"]
    bin           = @["foo"]
    
    
    Run

That way, others can depend on your "foopkg".

Reply via email to