Compare commits

..

4 commits

Author SHA1 Message Date
github-actions[bot]
389d07413e flake.lock: Update
Flake lock file updates:

• Updated input 'f1multiviewer':
    'github:daylinmorgan/f1multiviewer-flake/d5ecfcbffb830f6d1325ea1c1680e61f6363e451?narHash=sha256-dinkhlPUUcPiw8MAujBjE6ee5SYJnYhgup6ovjPahhw%3D' (2024-07-07)
  → 'github:daylinmorgan/f1multiviewer-flake/b711311e5b431c6794afbfc2d001fed67f00c99d?narHash=sha256-7BQ6AkXRfDiyO63fV7Vi9jk0CQE44CzJ5j5olKmCizY%3D' (2024-07-17)
• Updated input 'hyprland':
    'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=da956c8a979471282db6790f5fa5dcec320ec226&submodules=1' (2024-07-16)
  → 'git+https://github.com/hyprwm/Hyprland/?ref=refs/heads/main&rev=300228b503b36e5977b0d58713c5b4cf1f07b8a9&submodules=1' (2024-07-17)
• Updated input 'lix':
    'd094dd0396.tar.gz?narHash=sha256-xeE9I/oGt%2BIz7AwnadBlzSJRk8I5y1XKYt2ifV/2eo0%3D' (2024-07-16)
  → '7b1abf8107.tar.gz?narHash=sha256-39RhKptnozRK63T4l6TcXGKjCXsvcetC4zCMj%2B0Xthw%3D' (2024-07-18)
• Updated input 'nixos-wsl':
    'github:nix-community/NixOS-WSL/f6db2d325bdf57d39a3ae43376bdf2a020a6aad2?narHash=sha256-wuHiinPG5CzCUBr9I51g%2BIRhP/69Y9gRVh%2BQnEtFnyI%3D' (2024-07-15)
  → 'github:nix-community/NixOS-WSL/8ebede998342477736e0d0acdcc13ddb166a335f?narHash=sha256-fwTSeMR1senkBPaKQyOkbkmFu3%2B8jj3UHoLZ3TcrOfw%3D' (2024-07-17)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/b2c1f10bfbb3f617ea8e8669ac13f3f56ceb2ea2?narHash=sha256-USDsS90/88RJibP3gEcH1AaVt%2BJpnX4XCUD9bAJP5I4%3D' (2024-07-15)
  → 'github:nixos/nixpkgs/9355fa86e6f27422963132c2c9aeedb0fb963d93?narHash=sha256-%2B%2BTYlGMAJM1Q%2B0nMVaWBSEvEUjRs7ZGiNQOpqbQApCU%3D' (2024-07-16)
• Updated input 'roc':
    'github:roc-lang/roc/5cf4a4af1f01c7cab4cd21ad0974967bb2a3b9ca?narHash=sha256-vtpHbfU7BMrHj6Dn/azl7vFwhpIj7%2BOW9MacF9ac3BI%3D' (2024-07-15)
  → 'github:roc-lang/roc/70fa3ecdc2c76a8bde74bed2048beb8d02bdbd92?narHash=sha256-RR/JyDDDapqGu0XgIR2WhwlIuAaTgC3XQkRTM6vmiNI%3D' (2024-07-18)
• Updated input 'zig2nix':
    'github:Cloudef/zig2nix/cf6d6a8d6db80370f61469fb682479bdadfad83f?narHash=sha256-PPeGUDP5ZL8pnBRKRCBpBG9mYpun11QyGwmWD2orSIA%3D' (2024-07-17)
  → 'github:Cloudef/zig2nix/7eefb0631345741feb4b31b94898ab20d67f7594?narHash=sha256-eK%2BXZUOjz1864Lo7qf8xfLNIL7aeaFUbug9B0k07o08%3D' (2024-07-18)
• Updated input 'zls/zig-overlay':
    'github:mitchellh/zig-overlay/6eb42ce6f85d247b1aecf854c45d80902821d0ad?narHash=sha256-hvQ900gSqzGnJWMRQwv65TixciIbC44iX0Nh5ENRwCU%3D' (2024-06-16)
  → 'github:mitchellh/zig-overlay/697b4e864fc728f18b79b71c8c086fda8a6fb7ea?narHash=sha256-v5Nmp%2BPU4S8jJAJh8tQ%2Bmysag1x6w/CcWjgQNZ/stww%3D' (2024-07-16)
2024-07-18 15:20:21 +00:00
d49e0b044d
add version to roc 2024-07-18 10:18:32 -05:00
435d63b188
update update 2024-07-18 10:17:59 -05:00
f8754b8105
add matrix for update 2024-07-18 09:29:28 -05:00
7 changed files with 34 additions and 16 deletions

View file

@ -58,7 +58,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
hosts:
host:
- othalan
- algiz
- mannaz

View file

@ -498,11 +498,11 @@
"lix": {
"flake": false,
"locked": {
"lastModified": 1721253059,
"narHash": "sha256-GSzKw0vbUMpqKnOa6xJ4Fm1K/f1Cm9SrP0O8BP/6GZs=",
"rev": "68567206f244f26f4830030c172d63c3dc9a13a1",
"lastModified": 1721314880,
"narHash": "sha256-39RhKptnozRK63T4l6TcXGKjCXsvcetC4zCMj+0Xthw=",
"rev": "7b1abf81076c93a84becc310722013e44d850002",
"type": "tarball",
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/68567206f244f26f4830030c172d63c3dc9a13a1.tar.gz"
"url": "https://git.lix.systems/api/v1/repos/lix-project/lix/archive/7b1abf81076c93a84becc310722013e44d850002.tar.gz"
},
"original": {
"type": "tarball",

View file

@ -63,6 +63,11 @@ let
(substring 6 2 longDate)
]);
flakeVer =
flake:
"${flake.shortRev or flake.dirtyShortRev}-${mkDate (toString flake.lastModifiedDate)}";
isNixFile = p: hasSuffix ".nix" p;
isDefaultNixFile = p: hasSuffix "default.nix" p;
filterNotDefaultNixFile = paths: filter (p: !(isDefaultNixFile p) && (isNixFile p)) paths;
@ -81,5 +86,6 @@ in
mkIfIn
isNixFile
listNixFilesRecursive
flakeVer
;
}

View file

@ -6,14 +6,23 @@
...
}:
let
inherit (lib) mkIfIn;
inherit (lib) mkIfIn flakeVer;
version = flakeVer inputs.roc;
cfg = config.oizys.languages;
rocPkgs = inputs.roc.packages.${pkgs.system};
# I'm setting the versions so the changes are more apparent as flake is updated
roc = rocPkgs.cli.overrideAttrs {
inherit version;
};
lang-server = rocPkgs.lang-server.overrideAttrs {
inherit version;
};
in
{
config = mkIfIn "roc" cfg {
environment.systemPackages = with rocPkgs; [
full # cli + lang_server
];
environment.systemPackages = [roc lang-server];
};
}

View file

@ -16,7 +16,7 @@ var updateCmd = &cobra.Command{
Short: "update and run nixos rebuild",
Run: func(cmd *cobra.Command, args []string) {
run := github.GetLastUpdateRun()
md, err := github.GetUpateSummary(run.GetID())
md, err := github.GetUpateSummary(run.GetID(), oizys.GetHost())
if err != nil {
log.Fatal(err)
}

View file

@ -60,10 +60,11 @@ func GetArtifacts(runID int64) (*github.ArtifactList, *github.Response) {
return artifactList, resp
}
func GetUpdateSummaryArtifact(runID int64) *github.Artifact {
func GetUpdateSummaryArtifact(runID int64, host string) *github.Artifact {
artifactName := fmt.Sprintf("%s-summary", host)
artifactList, _ := GetArtifacts(runID)
for _, artifact := range artifactList.Artifacts {
if artifact.GetName() == "summary" {
if artifact.GetName() == artifactName {
return artifact
}
}
@ -71,8 +72,8 @@ func GetUpdateSummaryArtifact(runID int64) *github.Artifact {
return nil
}
func GetUpdateSummaryUrl(runID int64) *url.URL {
artifact := GetUpdateSummaryArtifact(runID)
func GetUpdateSummaryUrl(runID int64, host string) *url.URL {
artifact := GetUpdateSummaryArtifact(runID, host)
url, resp, err := client.Actions.DownloadArtifact(context.Background(), "daylinmorgan", "oizys", artifact.GetID(), 4)
if err != nil {
log.Fatal("failed to get update summary URL", "artifact", artifact.GetID(), "resp", resp)
@ -109,8 +110,8 @@ func GetLastUpdateRun() *github.WorkflowRun {
return run
}
func GetUpateSummary(runID int64) (string, error) {
url := GetUpdateSummaryUrl(runID)
func GetUpateSummary(runID int64, host string) (string, error) {
url := GetUpdateSummaryUrl(runID, host)
bytes := GetUpdateSummaryFromUrl(url)
md, err := ReadMarkdownFromZip(bytes, "summary.md")
return md, err

View file

@ -6,6 +6,7 @@ import (
"fmt"
"io/fs"
"oizys/internal/git"
// "oizys/internal/github"
"oizys/internal/ui"
"os"
@ -99,6 +100,7 @@ func SetHost(name string) {
}
}
func GetHost() string { return o.host }
func SetVerbose(v bool) {
o.verbose = v
}