mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
nimPackages.nimBuilder: collect deps from $pkgsHostTarget
This commit is contained in:
parent
8e0f7fd8e3
commit
2aa7799528
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user