nix wrapper for update script

This commit is contained in:
Robin Appelman 2026-11-24 14:11:43 +01:00
commit fec9876ae0
3 changed files with 18 additions and 1 deletions

View file

@ -113,6 +113,20 @@
sourcemod-includes
sourcemod-addon-socket
]);
update = pkgs:
pkgs.writeShellApplication {
name = "update";
runtimeInputs = with pkgs; lib.optionals (stdenv.system == "x86_64-linux") [nushell depotdownloader];
checkPhase = "";
text =
if (pkgs.stdenv.system == "x86_64-linux")
then ''
nu ${./update.nu} "$@"
''
else ''
echo "Update script only supports x86_64-linux"
'';
};
};
checks = {