fix gh actions

This commit is contained in:
FUFSoB committed 2026-04-15 17:43:23 +05:00
1 parent 5e69502382
commit 476b3fc21e
2 files changed
+10 -4

No files matched your search

+7 -1
View File
@@ -44,7 +44,13 @@ let
flake = builtins.getFlake (builtins.getEnv "REF");
watched = builtins.fromJSON (builtins.getEnv "WATCH_ATTRS_JSON");
system = builtins.getEnv "SYSTEM";
pkgs = flake.legacyPackages.${system};
pkgs =
if flake ? legacyPackages then
flake.legacyPackages.${system}
else if flake ? inputs && flake.inputs ? nixpkgs then
import flake.inputs.nixpkgs { inherit system; }
else
throw "Cannot evaluate watched nixpkgs attrs: flake has neither legacyPackages nor inputs.nixpkgs";
lib = pkgs.lib;
versionOf = attrPath:
let value = lib.attrByPath (lib.splitString "." attrPath) null pkgs;