nimPackages.nimBuilder: collect deps from $pkgsHostTarget

This commit is contained in:
Emery Hemingway
2022-01-07 12:44:22 +01:00
committed by ehmry
parent 8e0f7fd8e3
commit 2aa7799528
2 changed files with 2 additions and 2 deletions
@@ -10,7 +10,7 @@ stdenv.mkDerivation (attrs // {
configurePhase = if isNull configurePhase then ''
runHook preConfigure
find $NIX_BUILD_TOP -name .attrs.json
export NIX_NIM_BUILD_INPUTS=''${pkgsHostTarget[@]} $NIX_NIM_BUILD_INPUTS
nim_builder --phase:configure
runHook postConfigure
'' else
@@ -97,7 +97,7 @@ proc configurePhase*() =
for def in getEnv("nimDefines").split:
if def != "":
switch("define", def)
for input in getEnv("buildInputs").split:
for input in getEnv("NIX_NIM_BUILD_INPUTS").split:
if input != "":
for nimbleFile in walkFiles(input / "*.nimble"):
let inputSrc = normalizedPath(