nimble icon indicating copy to clipboard operation
nimble copied to clipboard

`nimble install`: support staged installation

Open CyberTailor opened this issue 2 years ago • 1 comments

Package managers are usually sandboxed (they don't allow direct installation to system root but install to some intermediate directory instead).

This approach works for most common build systems. They

  • Have "configure" to find dependencies in the system root
  • Install to $(DESTDIR)

But Nimble checks dependencies and installs files in the same command, so I have no idea how to make it work with Portage.

Some Nimble option can be introduced for manual dependency resolution or for installation directory other than nimbleDir.

CyberTailor avatar Nov 07 '21 17:11 CyberTailor

Moreover, nimble install builds the package even when nimble build has been already run, so there's no way to separate compilation and installation. If it was possible, I'd be able to sed(1) out all "requires" lines in the *.nimble file before installation at least.

CyberTailor avatar Nov 08 '21 03:11 CyberTailor