I've finally gotten my [NimDBX](https://github.com/snej/nimdbx) package to 
install properly with `nimble install NimDBX`. It took some fighting with 
Nimble, Nimterop, and libmdbx.

  * Nimble doesn't install anything outside the repo's source directory … but 
the libmdbx sources are in a submodule at `vendor/libmdbx`, so they were 
dropped and couldn't be compiled.
  * I got Nimble to copy libmdbx … but then the makefile complained, since 
libmdbx refuses to build unless it's a bona fide Git submodule, which the copy 
isn't.
  * Then I found the `make dist` option of libmdbx, which creates a new `dist` 
directory containing preconfigured source files.
  * So I ended up generating that, then copying it into the NimDBX source tree 
and committing it.



The only remaining issue is that, if you try to _uninstall_ NimDBX, you get a 
warning "Cannot completely remove /Users/xxx/.nimble/pkgs/nimdbx-0.4.1. Files 
not installed by nimble are present." This happens because object files are 
created in the libmdbx directory when it builds. Not sure what to do about that.

Reply via email to