Compare commits

...

7 commits

Author SHA1 Message Date
7558bed0b0 flake.lock: Update
Flake lock file updates:

• Updated input 'ghostty':
    'git+ssh://git@github.com/ghostty-org/ghostty?ref=refs/heads/main&rev=70b984ebaff9fb9e80e0332a00eaac7b45b52e1d' (2024-11-11)
  → 'git+ssh://git@github.com/ghostty-org/ghostty?ref=refs/heads/main&rev=523e3a6ae3e62463b309c1b3222bafd7b1fb11ef' (2024-11-13)
• Updated input 'hyprland':
    'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=f5fa84554ffe55e29a397014964238be89ffa54d' (2024-11-11)
  → 'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=3fb47372b79265ebdabeeefdad10359d5b18377a' (2024-11-13)
• Updated input 'hyprland/aquamarine':
    'github:hyprwm/aquamarine/a49bc3583ff223f426cb3526fdaa4bcaa247ec14' (2024-11-07)
  → 'github:hyprwm/aquamarine/3b00e96f90cb0040de6d88ad99bf5f4d443f0c59' (2024-11-13)
• Updated input 'hyprland/hyprutils':
    'github:hyprwm/hyprutils/60d3dece30f98e8ad85131829c8529950630d6bc' (2024-11-09)
  → 'github:hyprwm/hyprutils/315fba5d21d87ddb756d4bebdb49f99d86b0ffe8' (2024-11-13)
• Updated input 'hyprland/nixpkgs':
    'github:NixOS/nixpkgs/4aa36568d413aca0ea84a1684d2d46f55dbabad7' (2024-11-05)
  → 'github:NixOS/nixpkgs/76612b17c0ce71689921ca12d9ffdc9c23ce40b2' (2024-11-09)
• Updated input 'hyprland/pre-commit-hooks':
    'github:cachix/git-hooks.nix/d70155fdc00df4628446352fc58adc640cd705c2' (2024-11-05)
  → 'github:cachix/git-hooks.nix/cd1af27aa85026ac759d5d3fccf650abe7e1bbf0' (2024-11-11)
• Updated input 'hyprman':
    'git+https://git.dayl.in/daylin/hyprman.git?ref=refs/heads/main&rev=a41acd54a3f887f4050c518de25963d5e7d6208f' (2024-11-07)
  → 'git+https://git.dayl.in/daylin/hyprman.git?ref=refs/heads/main&rev=884cb9c68c3d28542e581be762b13dcc380a8135' (2024-11-11)
• Updated input 'nixpkgs-wayland':
    'github:nix-community/nixpkgs-wayland/e71b4345d9aebca98d9ea91eb5f86d57f804f6d6' (2024-11-11)
  → 'github:nix-community/nixpkgs-wayland/c2fa066bb9952469a5e01a08293f78d114c02f09' (2024-11-13)
• Updated input 'tsm':
    'github:daylinmorgan/tsm/544b4f5c6fe8acd1a9529e5604ea2a9ced3161a4?dir=nix' (2024-10-07)
  → 'github:daylinmorgan/tsm/4a91ce99a774e19d8369a742482632522de5c2a1?dir=nix' (2024-11-13)
• Updated input 'utils':
    'git+https://git.dayl.in/daylin/utils.git?ref=refs/heads/main&rev=c81c065701d77bfce59e8358c2f9e2dfdcb11b95' (2024-11-07)
  → 'git+https://git.dayl.in/daylin/utils.git?ref=refs/heads/main&rev=32adb124b3b7ea820e3d0e67622c10e1c711ade4' (2024-11-11)
2024-11-13 19:53:09 +00:00
482f82c01c
don't break up table 2024-11-13 12:23:12 -06:00
351c730639
update llm 2024-11-13 12:15:19 -06:00
cf24473272
add duration to result reporting 2024-11-13 12:11:04 -06:00
56a1ae6931
switch to newer stable 2024-11-13 11:57:11 -06:00
e77fdc7381
add reporting to cache build 2024-11-13 11:52:07 -06:00
e012d5d854
update hwylcli 2024-11-13 11:45:38 -06:00
8 changed files with 69 additions and 52 deletions

View file

@ -20,11 +20,11 @@
]
},
"locked": {
"lastModified": 1730968822,
"narHash": "sha256-NocDjINsh6ismkhb0Xr6xPRksmhuB2WGf8ZmXMhxu7Y=",
"lastModified": 1731496216,
"narHash": "sha256-nlQrNN+tmJ+iP6Ck/czwZI0Hxz3oNvUyGkVruxJwgwA=",
"owner": "hyprwm",
"repo": "aquamarine",
"rev": "a49bc3583ff223f426cb3526fdaa4bcaa247ec14",
"rev": "3b00e96f90cb0040de6d88ad99bf5f4d443f0c59",
"type": "github"
},
"original": {
@ -240,11 +240,11 @@
"zig": "zig"
},
"locked": {
"lastModified": 1731351056,
"narHash": "sha256-a779DeG+HXRR5Gy/pU47KI/1xeLdeYoA8gyopRRseW4=",
"lastModified": 1731469793,
"narHash": "sha256-ZewQYTlsysOt6orTIIKNR+y43iklehOzeBF/Gfy7fog=",
"ref": "refs/heads/main",
"rev": "70b984ebaff9fb9e80e0332a00eaac7b45b52e1d",
"revCount": 7942,
"rev": "523e3a6ae3e62463b309c1b3222bafd7b1fb11ef",
"revCount": 7949,
"type": "git",
"url": "ssh://git@github.com/ghostty-org/ghostty"
},
@ -318,11 +318,11 @@
"xdph": "xdph"
},
"locked": {
"lastModified": 1731340175,
"narHash": "sha256-IfE7lqNFfFyzAu3pe2XTeNovU9tVzJeGLzQ2B8Segy0=",
"lastModified": 1731526492,
"narHash": "sha256-2Gob+eZEPpF225QrRLXyfeQ9L63YHFa/tNh15FW/Rzo=",
"ref": "refs/heads/main",
"rev": "f5fa84554ffe55e29a397014964238be89ffa54d",
"revCount": 5448,
"rev": "3fb47372b79265ebdabeeefdad10359d5b18377a",
"revCount": 5451,
"submodules": true,
"type": "git",
"url": "https://github.com/hyprwm/Hyprland/"
@ -413,11 +413,11 @@
]
},
"locked": {
"lastModified": 1731019624,
"narHash": "sha256-22viQMlEqNjwj+wHpo9FkKD/vlXmj+dzm+23VezXlME=",
"lastModified": 1731363071,
"narHash": "sha256-FdB1uxTPgS7vcfVIsG720G2+t2l6uHksW3bp3fzz/Q8=",
"ref": "refs/heads/main",
"rev": "a41acd54a3f887f4050c518de25963d5e7d6208f",
"revCount": 18,
"rev": "884cb9c68c3d28542e581be762b13dcc380a8135",
"revCount": 19,
"type": "git",
"url": "https://git.dayl.in/daylin/hyprman.git"
},
@ -438,11 +438,11 @@
]
},
"locked": {
"lastModified": 1731163338,
"narHash": "sha256-Qflei0JBeqQ0c8jxA8e982xAxJvfMwfx4Aci2eJi84s=",
"lastModified": 1731518387,
"narHash": "sha256-aZZw1ZvTMLkcA6udlvkA3hrCkuipoWLy8s/JNnIclxY=",
"owner": "hyprwm",
"repo": "hyprutils",
"rev": "60d3dece30f98e8ad85131829c8529950630d6bc",
"rev": "315fba5d21d87ddb756d4bebdb49f99d86b0ffe8",
"type": "github"
},
"original": {
@ -692,11 +692,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1730785428,
"narHash": "sha256-Zwl8YgTVJTEum+L+0zVAWvXAGbWAuXHax3KzuejaDyo=",
"lastModified": 1731139594,
"narHash": "sha256-IigrKK3vYRpUu+HEjPL/phrfh7Ox881er1UEsZvw9Q4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4aa36568d413aca0ea84a1684d2d46f55dbabad7",
"rev": "76612b17c0ce71689921ca12d9ffdc9c23ce40b2",
"type": "github"
},
"original": {
@ -745,11 +745,11 @@
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1731353483,
"narHash": "sha256-0IZPqgc4k/VqP3yLhNw8QbiPRq56Cl07ewRv7aqQZIw=",
"lastModified": 1731515670,
"narHash": "sha256-tY1C721VV87LfNdGBsdRwTXpskFlqEXxLokgNO1OnZA=",
"owner": "nix-community",
"repo": "nixpkgs-wayland",
"rev": "e71b4345d9aebca98d9ea91eb5f86d57f804f6d6",
"rev": "c2fa066bb9952469a5e01a08293f78d114c02f09",
"type": "github"
},
"original": {
@ -901,11 +901,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1730814269,
"narHash": "sha256-fWPHyhYE6xvMI1eGY3pwBTq85wcy1YXqdzTZF+06nOg=",
"lastModified": 1731363552,
"narHash": "sha256-vFta1uHnD29VUY4HJOO/D6p6rxyObnf+InnSMT4jlMU=",
"owner": "cachix",
"repo": "git-hooks.nix",
"rev": "d70155fdc00df4628446352fc58adc640cd705c2",
"rev": "cd1af27aa85026ac759d5d3fccf650abe7e1bbf0",
"type": "github"
},
"original": {
@ -938,16 +938,16 @@
},
"stable": {
"locked": {
"lastModified": 1720535198,
"narHash": "sha256-zwVvxrdIzralnSbcpghA92tWu2DV2lwv89xZc8MTrbg=",
"lastModified": 1731239293,
"narHash": "sha256-q2yjIWFFcTzp5REWQUOU9L6kHdCDmFDpqeix86SOvDc=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "205fd4226592cc83fd4c0885a3e4c9c400efabb5",
"rev": "9256f7c71a195ebe7a218043d9f93390d49e6884",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-23.11",
"ref": "nixos-24.05",
"repo": "nixpkgs",
"type": "github"
}
@ -1058,11 +1058,11 @@
},
"locked": {
"dir": "nix",
"lastModified": 1728315073,
"narHash": "sha256-x2kUFvEWzLcrwvWVi/DNBnLkPGG3xGsPU996ckR5NFY=",
"lastModified": 1731525506,
"narHash": "sha256-fiwUGTEee3UKmflWgwLvZmuXmx2IAF7tFLSNRbX2Yf8=",
"owner": "daylinmorgan",
"repo": "tsm",
"rev": "544b4f5c6fe8acd1a9529e5604ea2a9ced3161a4",
"rev": "4a91ce99a774e19d8369a742482632522de5c2a1",
"type": "github"
},
"original": {
@ -1080,11 +1080,11 @@
"nixpkgs": "nixpkgs_8"
},
"locked": {
"lastModified": 1730954629,
"narHash": "sha256-1Q54FS+ScXopTd40xzTBe/iydiQQp2JsymfeGPGHX2A=",
"lastModified": 1731360812,
"narHash": "sha256-4DKaz/gafKL2JOsC0rwO7/5R8AlwJ2EcLmxSPG8HO64=",
"ref": "refs/heads/main",
"rev": "c81c065701d77bfce59e8358c2f9e2dfdcb11b95",
"revCount": 22,
"rev": "32adb124b3b7ea820e3d0e67622c10e1c711ade4",
"revCount": 23,
"type": "git",
"url": "https://git.dayl.in/daylin/utils.git"
},

View file

@ -5,7 +5,7 @@
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
stable.url = "github:nixos/nixpkgs/nixos-23.11";
stable.url = "github:nixos/nixpkgs/nixos-24.05";
my-nixpkgs.url = "github:daylinmorgan/nixpkgs/nixos-unstable";
nixpkgs-wayland.url = "github:nix-community/nixpkgs-wayland";

View file

@ -13,14 +13,14 @@
buildPythonPackage rec {
pname = "llm-claude-3";
version = "0.7";
version = "0.8";
pyproject = true;
src = fetchFromGitHub {
owner = "simonw";
repo = "llm-claude-3";
rev = version;
hash = "sha256-5qF5BK319PNzB4XsLdYvtyq/SxBDdHJ9IoKWEnvNRp4=";
hash = "sha256-XhmxUo+nM6el17AVRUq+RLT5SEl+Q0eWhouU9WDZJl0=";
};
nativeBuildInputs = [

View file

@ -8,7 +8,7 @@ buildNimblePackage {
verions = "unstable";
src = lib.cleanSource ./.;
nativeBuildInputs = [ openssl ];
nimbleDepsHash = "sha256-ZEPzosRwokkvPKbv5nqzATv6IqUhqM2prOU0vUUC80Q=";
nimbleDepsHash = "sha256-J/iuDYR5A771zAuRKA94rwXX9L3+KtiodDxQRFO0GEc=";
meta = {
description = "nix begat oizys";

View file

@ -3,12 +3,12 @@
"packages": {
"hwylterm": {
"version": "0.1.0",
"vcsRevision": "65a952e9f0d75659d39f8a3b146753e291ee0a66",
"vcsRevision": "cbeefd675c0884feebad4dc62910092519f8b2ed",
"url": "https://github.com/daylinmorgan/hwylterm",
"downloadMethod": "git",
"dependencies": [],
"checksums": {
"sha1": "10894d492bbe1d0ea32ee9bb0686abfcd3b0b0fe"
"sha1": "4d043352ad07388d0181c0fd4cf325317e9306d0"
}
},
"jsony": {

View file

@ -13,5 +13,5 @@ bin = @["oizys"]
requires "nim >= 2.0.8"
requires "jsony"
requires "zippy"
requires "https://github.com/daylinmorgan/hwylterm#65a952e"
requires "https://github.com/daylinmorgan/hwylterm#cbeefd67"

View file

@ -25,15 +25,13 @@ hwylCli:
resetCache:
? "set cache timeout to 0"
- r
[yes]
[misc]
yes:
- y
? "skip all confirmation prompts"
[minimal]
minimal:
? "set minimal"
- m
preSub:
setupLoggers(debug)
updateContext(host, flake, debug, resetCache)
@ -43,7 +41,7 @@ hwylCli:
[build]
... "nix build"
flags:
^[minimal]
^minimal
run:
nixBuild(minimal, args)
@ -80,7 +78,7 @@ hwylCli:
[dry]
... "dry run build"
flags:
^[minimal]
^minimal
run:
nixBuildHostDry(minimal, args)
@ -105,7 +103,7 @@ hwylCli:
[update]
... "update and run nixos-rebuild"
flags:
^[yes]
^yes
preview:
- p
T bool

View file

@ -297,6 +297,23 @@ func outputsPaths(o: OizysDerivation): seq[string] =
for _, output in o.drv.outputs:
result.add output.path
proc reportResults(results: seq[(OizysDerivation, BuildResult)]) =
let rows = collect(
for (drv, res) in results:
let (name, hash) = splitDrv(drv.name)
fmt"| {name} | `{hash}` | " & (
if res.successful: ":white_check_mark:"
else: ":x:"
) & " |" & $(res.duration)
)
let summaryFilePath = getEnv("GITHUB_STEP_SUMMARY")
if summaryFilePath == "": fatalQuit "no github step summary found"
let output = open(summaryFilePath, fmAppend)
output.writeLine "| derivation | hash | build | time |"
output.writeLine "|---|---|---|---|"
output.writeLine rows.join("\n")
close output
proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: int) =
## build individual derivations not cached and push to cache
if findExe(service) == "": fatalQuit fmt"is {service} installed?"
@ -312,12 +329,14 @@ proc nixBuildWithCache*(name: string, rest:seq[string], service: string, jobs: i
for drv in drvs:
(drv, build(drv, rest))
# TODO: add back reporting to GITHUB SUMMARY
var outs: seq[string]
for (drv, res) in results:
if res.successful:
outs &= drv.outputsPaths
if isCi():
reportResults(results)
# TODO: push after build not at once?
var cmd = service
cmd.addArg "push"