From 56449e59d7aabd1c06fb67a51a1e129b55cb9270 Mon Sep 17 00:00:00 2001 From: yuuko Date: Thu, 29 Aug 2024 21:51:04 -0700 Subject: break out of system config --- srcds-pkgs/plugins/Updater.nix | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcds-pkgs/plugins/Updater.nix (limited to 'srcds-pkgs/plugins/Updater.nix') diff --git a/srcds-pkgs/plugins/Updater.nix b/srcds-pkgs/plugins/Updater.nix new file mode 100644 index 0000000..3c252fd --- /dev/null +++ b/srcds-pkgs/plugins/Updater.nix @@ -0,0 +1,28 @@ +{ fetchzip, buildSMPlugin, ed +, SM-neocurl-ext, SteamTools, SteamWorks, socket +}: +buildSMPlugin rec { + pname = "Updater"; + version = "1.2.1"; + + src = fetchzip { + url = "https://forums.alliedmods.net/attachment.php?attachmentid=183438"; + extension = "zip"; + stripRoot = false; + hash = "sha256-M+kUvHzwiJXOGIdbUql5nbFdCPdzYdRM1BCq6Y8Fuls="; + }; + + nativeBuildInputs = [ ed ]; + buildInputs = [ SM-neocurl-ext SteamTools SteamWorks socket ]; + + postPatch = '' + ed scripting/updater.sp <