add build flag

This commit is contained in:
Daylin Morgan 2024-11-03 11:37:11 -06:00
parent 67e94ed1cf
commit 853678a1a9
Signed by: daylin
GPG key ID: 950D13E9719334AD
2 changed files with 2 additions and 1 deletions

View file

@ -21,7 +21,7 @@ type
CaptStdout
CaptStderr
# TODO: suppot both capturing and inheriting the stream?
# TODO: support both capturing and inheriting the stream?
proc runCmdCapt*(
cmd: string,
capture: set[CaptureGrp] = {CaptStdout},

View file

@ -253,6 +253,7 @@ proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: i
cmd.addArg drv
cmd.addArg "--no-link"
cmd.addArg "--print-out-paths"
cmd.addArg "-L"
cmd.addArgs rest
let (path, _, buildCode) = runCmdCapt(cmd)
if buildCode != 0: