# nimbus # Copyright (c) 2018-2024 Status Research & Development GmbH # Licensed and distributed under either of # * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT). # * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0). # at your option. This file may not be copied, modified, or distributed except according to those terms. mode = ScriptMode.Verbose packageName = "nimbus" version = "0.1.0" author = "Status Research & Development GmbH" description = "An Ethereum 2.0 Sharding Client for Resource-Restricted Devices" license = "Apache License 2.0" skipDirs = @["tests", "examples"] # we can't have the result of a custom task in the "bin" var - https://github.com/nim-lang/nimble/issues/542 # bin = @["build/nimbus"] requires "nim >= 1.6.0", "bncurve", "chronicles", "chronos", "eth", "json_rpc", "libbacktrace", "nimcrypto", "stew", "stint", "rocksdb", "ethash", "blscurve", "evmc", "web3", "minilru" binDir = "build" when declared(namedBin): namedBin = { "nimbus/nimbus_execution_client": "nimbus_execution_client", "fluffy/fluffy": "fluffy", "nimbus_verified_proxy/nimbus_verified_proxy": "nimbus_verified_proxy", "nimbus_unified":"nimbus_unified" }.toTable() import std/os proc buildBinary(name: string, srcDir = "./", params = "", lang = "c") = if not dirExists "build": mkDir "build" # allow something like "nim nimbus --verbosity:0 --hints:off nimbus.nims" var extra_params = params for i in 2..