mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 06:00:45 -06:00
Compare commits
No commits in common. "0340586ec7ecb2ddb7979e4ee05946392490e3da" and "a459ea2ad154d68ca70eeaca44bdd7a08e81d1c5" have entirely different histories.
0340586ec7
...
a459ea2ad1
3 changed files with 10 additions and 5 deletions
|
@ -845,11 +845,11 @@
|
|||
"nixpkgs": "nixpkgs_6"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1727812556,
|
||||
"narHash": "sha256-U9cEs2W0eLvIS0kEMBGP8eZMdrpoHqynByth/mu2Nvc=",
|
||||
"lastModified": 1727710797,
|
||||
"narHash": "sha256-2Xr8tAZoLrMkvD0Sil6053x2Lbsy8cvmlk8sApSWdD0=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs-wayland",
|
||||
"rev": "a40e6b047b6166aed5fab801e99a8d6b980d4680",
|
||||
"rev": "50e4446e6dce9e1e52455f5b87bb91e83a538468",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
|
|
@ -5,6 +5,7 @@ import oizys/[context, github, nix, overlay]# 3, logging
|
|||
|
||||
addHandler(
|
||||
newFancyConsoleLogger(
|
||||
levelThreshold = lvlAll,
|
||||
fmtPrefix = $bb"[b magenta]oizys"
|
||||
)
|
||||
)
|
||||
|
@ -36,7 +37,7 @@ overlay:
|
|||
nixBuildHostDry(minimal, rest)
|
||||
|
||||
proc output(yes: bool = false) =
|
||||
## nixos config attr
|
||||
## output
|
||||
echo nixosConfigAttrs().join(" ")
|
||||
|
||||
proc update(
|
||||
|
|
|
@ -186,7 +186,7 @@ proc writeDervationsToStepSummary(drvs: seq[string]) =
|
|||
let rows = collect(
|
||||
for drv in drvs:
|
||||
let (name,hash) = splitDrv(drv)
|
||||
fmt"| {name} | `{hash}` |"
|
||||
fmt"| {name} | {hash} |"
|
||||
)
|
||||
let summaryFilePath = getEnv("GITHUB_STEP_SUMMARY")
|
||||
if summaryFilePath == "": fatalQuit "no github step summary found"
|
||||
|
@ -233,6 +233,10 @@ proc nixBuildHostDry*(minimal: bool, rest: seq[string]) =
|
|||
let output = parseDryRunOutput err
|
||||
display output
|
||||
|
||||
# TODO: Add to bbansi
|
||||
template `bbfmt`(pattern: static string): untyped =
|
||||
bb(fmt(pattern))
|
||||
|
||||
proc nixBuildWithCache*(minimal: bool, name: string, rest:seq[string]) =
|
||||
if findExe("cachix") == "": fatalQuit "is cachix installed?"
|
||||
info bbfmt"building and pushing to cache: [b]{name}"
|
||||
|
|
Loading…
Reference in a new issue