Switch to the new style of importing vendor packages

In preparation of our migration to the new Nimble-based setup
and [nim-workspace][1], we switch to a new model where the vendor
packages are no longer imported through a locally generated Nimble
dir, but rather through an auto-generated `nimbus-build-system.paths`
file that features regular `--path:` statements.

This file will be imported only within the nimbus-build-system
environment in order to avoid any unwanted interference in working
copies based on the new Nimble setup.

[1]: https://github.com/status-im/nim-workspace
This commit is contained in:
Zahary Karadjov 2022-08-25 22:19:50 +03:00 committed by zah
parent 113de71252
commit 4b83208a19
3 changed files with 11 additions and 1 deletions

4
.gitignore vendored
View File

@ -33,3 +33,7 @@ nimcache
# Nimble user files
nimble.develop
nimble.paths
# nimbus-build-system files
nimbus-build-system.paths

View File

@ -1,5 +1,11 @@
import strutils
--noNimblePath
if getEnv("NIMBUS_BUILD_SYSTEM") == "yes" and
system.fileExists("nimbus-build-system.paths"):
include "nimbus-build-system.paths"
if defined(release):
switch("nimcache", "nimcache/release/$projectName")
else:

@ -1 +1 @@
Subproject commit a8ab2dc39aad4d69ba3be72868772d851b4b9741
Subproject commit daff2b46700894a1771241dafcf26ee31bb2fdf5