move hl2sdk attrset from package to toplevel

This commit is contained in:
Robin Appelman 2026-07-09 00:35:33 +02:00
commit fe706dc5c0
2 changed files with 2 additions and 2 deletions

View file

@ -41,11 +41,11 @@
perSystem = pkgs: {
sourcemods = pkgs.lib.mapAttrs (name: sdk: pkgs.sourcemod.override {sdks = {${name} = sdk;};}) pkgs.hl2sdk;
metamods = pkgs.lib.mapAttrs (name: sdk: pkgs.metamod-source-builder {${name} = sdk;}) pkgs.hl2sdk;
hl2sdk = pkgs.hl2sdk;
};
packages = inheritPkgs [
"ambuild"
"hl2sdk"
"sourcepawn"
"sourcemod"
"sourcemod-includes"

View file

@ -30,7 +30,7 @@ def update_sdk [sdk: string] {
# so we put a unique dummy value in there to work around this
open nix/sourcemod/hl2sdks.json | update ([$sdk, "sha256"] | into cell-path) $"($sdk)-placeholder" | save -f nix/sourcemod/hl2sdks.json
nix-update --flake --use-update-script $"hl2sdk.($sdk)"
nix-update --flake --use-update-script $"hl2sdk.x86_64-linux.($sdk)"
nix build .#sourcemods.x86_64-linux.tf2
}