Commit Graph

24 Commits

Author SHA1 Message Date
tersec 14e0c55e89
quote and library paths for use in passc/passl to allow embedded spaces (#79) 2024-03-26 18:36:14 +00:00
Zahary Karadjov 95afb33019
Generate nimbus-build-system.paths from env.sh again
The model where nimbus-build-system.paths were generated as a dependency
from `update-common` proved to create various issues in practice:

* It was not working properly during the repository bootstrapping
  because the paths file generation script is assuming that all
  submodules are already checked out

* It was not always triggered from builds of the top-level targets
  due to missing or already satisfied dependencies on `update-common`.

A more proper solution would structure the dependencies like this:

top-level-project -> nimbus-build-system.paths -> vendor-modules

... but this requires a larger refactoring of the Makefiles, so I'm
merging this interim solution as a way to improve the status quo.
2023-02-23 17:12:35 +02:00
Jacek Sieka 8c59324e8f
introduce `NIMC` to control which `nim` to call (#53) 2022-11-24 17:07:01 +01:00
Zahary Karadjov dc535cd462
Better compatibility with direnv
Scripts sourcing a project env.sh file (e.g. direnv's .envrc) can specify
the `NBS_ONLY_LOAD_ENV_VARS` env variable to avoid any attempts from NBS
to execute a target script. Previously, the script was trying to detect
only sourcing from an interactive shell.
2022-10-15 00:59:16 +03:00
Zahary Karadjov d548b20ecd
Generate the paths file in 'make update' 2022-10-14 23:43:51 +03:00
Ivan Yonchovski daff2b4670
Make sure the path is understandable for nim on windows (#49) 2022-09-12 12:50:14 +03:00
Zahary Karadjov c7977002fb
Support vendor packages with a 'src' folder 2022-08-25 22:17:48 +03:00
Ivan Yonchovski daca2e58bd
Initial step to make NBS work with --noNimblePath (#48)
Here POC on what are the other steps that have to be performed to allow using NBS.

0961d3acc2

Once all projects migrate to this approach, the code related to building
NIMBLE_PATH can be deleted from the repo

cc @zah
2022-08-11 13:09:15 +03:00
Ștefan Talpalaru 7d418e44da move from timestamps to commit hashes
This allows a faster path for the most common scenario and avoiding a
hard link that probably doesn't work on Windows.
2021-04-28 18:00:44 +03:00
Ștefan Talpalaru 92e5042667
USE_SYSTEM_NIM: print message to stderr 2020-10-14 01:25:15 +02:00
Jakub 384264142c
use env bash shebangs for portability (#11)
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-08-13 15:37:57 +02:00
Ștefan Talpalaru fb6a9d2f8d
env.sh: print a message when using the system Nim 2020-05-22 15:41:50 +02:00
Ștefan Talpalaru 988217cc53
new env var: USE_SYSTEM_NIM 2020-04-15 17:25:03 +02:00
Ștefan Talpalaru 3ff26b54eb
remove Go support 2020-04-15 14:37:39 +02:00
Zahary Karadjov 088d3b7f68 The zsh PATH issue strikes again; Use more portable code 2020-02-25 18:48:15 +02:00
Zahary Karadjov 9f43764458 Add the Nimble bin directory to the PATH
I'm using this directory as a place to put the new testrunner exe
from the testutils package. For now, I'm doing this manually, but
it may be automated by the Makefiles in the future.
2020-02-25 18:48:15 +02:00
Ștefan Talpalaru bf86dccf4d
add comment 2019-09-04 18:58:26 +02:00
Zahary Karadjov 58780243a7
Alternative fix for the Nim path problem in zsh 2019-09-04 16:51:58 +02:00
Ștefan Talpalaru 705c897ee7
move Nim, Nim-csources and nimble submodules here 2019-08-28 15:10:15 +02:00
Ștefan Talpalaru ed16839098
env.sh: Zsh support 2019-08-23 20:24:45 +02:00
Ștefan Talpalaru 9397da232f
env.sh: $0 -> $BASH_SOURCE (to allow sourcing the file)
and set the prompt in `env.sh bash`
2019-08-23 18:55:16 +02:00
Ștefan Talpalaru c2ca83644e
env.sh needs Bash 2019-08-21 17:43:00 +02:00
Ștefan Talpalaru 17b4288519
env.sh: new functions - "nimble" and "add_submodule" 2019-08-21 17:06:22 +02:00
Ștefan Talpalaru a7618a6491
initial commit 2019-08-20 23:14:45 +02:00