add basic version of oizys utils lock

This commit is contained in:
Daylin Morgan 2025-01-29 11:00:45 -06:00
parent 6aba19a3b2
commit 7a2102abb3
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -1,7 +1,7 @@
## nix begat oizys
import std/[os, osproc, sequtils, strformat, strutils, tables]
import hwylterm, hwylterm/[hwylcli]
import oizys/[context, github, nix, logging, utils]
import oizys/[context, github, nix, logging, utils, exec]
proc checkExes() =
if findExe("nix") == "":
@ -185,3 +185,14 @@ hwylCli:
T seq[string]
run:
checkForCache(installables, cache)
[lock]
... """
check lock status for duplicates
currently just runs `jq < flake.lock '.nodes | keys[] | select(contains("_"))' -r`
"""
run:
# use absolute value for flake.lock?
quitWithCmd("""jq '.nodes | keys[] | select(contains("_"))' -r flake.lock""")