mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 14:20:44 -06:00
add build flag
This commit is contained in:
parent
67e94ed1cf
commit
853678a1a9
2 changed files with 2 additions and 1 deletions
|
@ -21,7 +21,7 @@ type
|
||||||
CaptStdout
|
CaptStdout
|
||||||
CaptStderr
|
CaptStderr
|
||||||
|
|
||||||
# TODO: suppot both capturing and inheriting the stream?
|
# TODO: support both capturing and inheriting the stream?
|
||||||
proc runCmdCapt*(
|
proc runCmdCapt*(
|
||||||
cmd: string,
|
cmd: string,
|
||||||
capture: set[CaptureGrp] = {CaptStdout},
|
capture: set[CaptureGrp] = {CaptStdout},
|
||||||
|
|
|
@ -253,6 +253,7 @@ proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: i
|
||||||
cmd.addArg drv
|
cmd.addArg drv
|
||||||
cmd.addArg "--no-link"
|
cmd.addArg "--no-link"
|
||||||
cmd.addArg "--print-out-paths"
|
cmd.addArg "--print-out-paths"
|
||||||
|
cmd.addArg "-L"
|
||||||
cmd.addArgs rest
|
cmd.addArgs rest
|
||||||
let (path, _, buildCode) = runCmdCapt(cmd)
|
let (path, _, buildCode) = runCmdCapt(cmd)
|
||||||
if buildCode != 0:
|
if buildCode != 0:
|
||||||
|
|
Loading…
Reference in a new issue