mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-02-22 23:35:51 -06:00
remove unused proc
This commit is contained in:
parent
6a3f91656e
commit
8b6b8227db
1 changed files with 0 additions and 19 deletions
|
@ -164,18 +164,6 @@ proc display(output: DryRunOutput) =
|
||||||
echo fmt"to fetch: [bold cyan]{output.toFetch.len()}[/]".bb
|
echo fmt"to fetch: [bold cyan]{output.toFetch.len()}[/]".bb
|
||||||
display("to build", output.toBuild)
|
display("to build", output.toBuild)
|
||||||
|
|
||||||
proc toBuildNixosConfiguration(): seq[string] =
|
|
||||||
var cmd = nixCommand("build")
|
|
||||||
cmd.addArg "--dry-run"
|
|
||||||
cmd.addArgs nixosAttrs()
|
|
||||||
let (_, err) = runCmdCaptWithSpinner(
|
|
||||||
cmd,
|
|
||||||
"running dry run build for: " & (getHosts().join(" ").bb("bold")),
|
|
||||||
capture = {CaptStderr}
|
|
||||||
)
|
|
||||||
let output = parseDryRunOutput err
|
|
||||||
return output.toBuild.mapIt(it.path)
|
|
||||||
|
|
||||||
# here a results var would be nice...
|
# here a results var would be nice...
|
||||||
proc narHash*(s: string): string =
|
proc narHash*(s: string): string =
|
||||||
## get hash from nix store path
|
## get hash from nix store path
|
||||||
|
@ -184,13 +172,6 @@ proc narHash*(s: string): string =
|
||||||
let ss = s.split("-")
|
let ss = s.split("-")
|
||||||
result = ss[0].split("/")[^1]
|
result = ss[0].split("/")[^1]
|
||||||
|
|
||||||
# proc evaluateDerivations(drvs: openArray[string]): Table[string, NixDerivation] =
|
|
||||||
# var cmd = "nix derivation show -r"
|
|
||||||
# cmd.addArgs drvs
|
|
||||||
# let (output, _) =
|
|
||||||
# runCmdCaptWithSpinner(cmd, "evaluating derivations")
|
|
||||||
# fromJson(output, Table[string, NixDerivation])
|
|
||||||
|
|
||||||
proc nixDerivationShow*(drvs: openArray[string]): Table[string, NixDerivation] =
|
proc nixDerivationShow*(drvs: openArray[string]): Table[string, NixDerivation] =
|
||||||
var cmd = "nix derivation show"
|
var cmd = "nix derivation show"
|
||||||
cmd.addArgs drvs
|
cmd.addArgs drvs
|
||||||
|
|
Loading…
Add table
Reference in a new issue