don't generate links

This commit is contained in:
Daylin Morgan 2024-07-01 11:14:43 -05:00
parent 6efe35770f
commit 1e6bce6594
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -231,7 +231,6 @@ func Dry(verbose bool, minimal bool, rest ...string) {
log.Info("no packages in minimal set to build") log.Info("no packages in minimal set to build")
os.Exit(0) os.Exit(0)
} }
cmd.Args = append(cmd.Args, append(drvs, "--no-link")...)
spinnerMsg = "evaluting for minimal build needs" spinnerMsg = "evaluting for minimal build needs"
} else { } else {
log.Debug("evalutating full nixosConfiguration") log.Debug("evalutating full nixosConfiguration")
@ -280,9 +279,6 @@ func NixBuild(nom bool, minimal bool, rest ...string) {
if o.resetCache { if o.resetCache {
cmd.Args = append(cmd.Args, "--narinfo-cache-positive-ttl", "0") cmd.Args = append(cmd.Args, "--narinfo-cache-positive-ttl", "0")
} }
// if o.inCI {
// o.ciPreBuild(cmd)
// }
if minimal { if minimal {
log.Debug("populating args with derivations not already built") log.Debug("populating args with derivations not already built")
drvs := systemPathDrvsToBuild() drvs := systemPathDrvsToBuild()
@ -290,9 +286,11 @@ func NixBuild(nom bool, minimal bool, rest ...string) {
log.Info("nothing to build. exiting...") log.Info("nothing to build. exiting...")
os.Exit(0) os.Exit(0)
} }
cmd.Args = append(cmd.Args, drvs...) cmd.Args = append(cmd.Args, append(drvs, "--no-link")...)
}
if !o.inCI {
cmd.Args = append(cmd.Args, "--log-format", "multiline")
} }
cmd.Args = append(cmd.Args, "--log-format", "multiline")
cmd.Args = append(cmd.Args, rest...) cmd.Args = append(cmd.Args, rest...)
exitWithCommand(cmd) exitWithCommand(cmd)
} }