From e9fb4b77a4e7d3eafe4d74eb5508fdf96be34e62 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 9 Jul 2026 19:51:55 +0200 Subject: [PATCH] package sourcemod-plugin-tf2-comp-fixes --- flake.nix | 1 + nix/sourcemod/plugins/overlay.nix | 1 + nix/sourcemod/plugins/tf2-comp-fixes.nix | 31 ++++++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 nix/sourcemod/plugins/tf2-comp-fixes.nix diff --git a/flake.nix b/flake.nix index 781efa4..34f664b 100644 --- a/flake.nix +++ b/flake.nix @@ -59,6 +59,7 @@ "sourcemod-plugin-soap-tf2dm" "sourcemod-plugin-progressive-ruleset-timer" "sourcemod-plugin-socket" + "sourcemod-plugin-tf2-comp-fixes" ] // { test = pkgs: diff --git a/nix/sourcemod/plugins/overlay.nix b/nix/sourcemod/plugins/overlay.nix index 4816c80..7bbfe39 100644 --- a/nix/sourcemod/plugins/overlay.nix +++ b/nix/sourcemod/plugins/overlay.nix @@ -3,4 +3,5 @@ final: prev: { sourcemod-plugin-soap-tf2dm = final.callPackage ./soap-tf2dm.nix {}; sourcemod-plugin-progressive-ruleset-timer = final.callPackage ./progressive-ruleset-timer.nix {}; sourcemod-plugin-socket = final.callPackage ./socket.nix {}; + sourcemod-plugin-tf2-comp-fixes = final.callPackage ./tf2-comp-fixes.nix {}; } diff --git a/nix/sourcemod/plugins/tf2-comp-fixes.nix b/nix/sourcemod/plugins/tf2-comp-fixes.nix new file mode 100644 index 0000000..df9fcd4 --- /dev/null +++ b/nix/sourcemod/plugins/tf2-comp-fixes.nix @@ -0,0 +1,31 @@ +{ + fetchzip, + stdenvNoCC, + nix-update-script, +}: +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "sourcemod-plugin-tf2-comp-fixes"; + version = "1.18.1"; + src = fetchzip { + url = "https://github.com/ldesgoui/tf2-comp-fixes/releases/download/v${finalAttrs.version}/tf2-comp-fixes.zip"; + sha256 = "sha256-m9dpVzn70cuxczgqiykdZmIrpdHF5Ckns2ipZYnwE+4="; + stripRoot = false; + }; + + installPhase = '' + runHook preInstall + + mkdir $out + mv addons $out/ + + runHook postInstall + ''; + + passthru = { + updateScript = nix-update-script { + extraArgs = [ + "--flake" + ]; + }; + }; +})