package sourcemod-plugin-properpregame

This commit is contained in:
Robin Appelman 2026-07-10 20:30:01 +02:00
commit 1fc1db846d
4 changed files with 42 additions and 2 deletions

View file

@ -73,6 +73,7 @@
"sourcemod-plugin-who"
"sourcemod-plugin-afk"
"sourcemod-plugin-demostf"
"sourcemod-plugin-properpregame"
]
// {
test = pkgs:
@ -83,7 +84,7 @@
sourcemod = true;
plugins = with pkgs; [
sourcemod-plugin-soap-tf2dm
sourcemod-plugin-demostf
sourcemod-plugin-properpregame
srctvplus
];
};

View file

@ -13,6 +13,7 @@ lib.extendMkDerivation {
installIncludes ? [],
runtimeInputs ? [],
src,
passthru ? {},
...
}: let
inherit (lib) concatStringsSep map length optionalString;
@ -49,6 +50,10 @@ lib.extendMkDerivation {
runHook postInstall
'';
passthru.runtimeInputs = runtimeInputs;
passthru =
passthru
// {
runtimeInputs = runtimeInputs;
};
};
}

View file

@ -16,4 +16,5 @@ final: prev: {
sourcemod-plugin-who = final.callPackage ./who.nix {};
sourcemod-plugin-afk = final.callPackage ./afk.nix {};
sourcemod-plugin-demostf = final.callPackage ./demostf.nix {};
sourcemod-plugin-properpregame = final.callPackage ./properpregame.nix {};
}

View file

@ -0,0 +1,33 @@
{
fetchFromGitHub,
mkSourcemodPlugin,
nix-update-script,
sourcemod-plugin-soap-tf2dm,
}:
mkSourcemodPlugin (finalAttrs: {
pname = "sourcemod-plugin-properpregame";
version = "0-unstable-2020-06-06";
src = fetchFromGitHub {
owner = "AJagger";
repo = "ProperPregame";
rev = "7698dabc7948f06d4821fc784c665ec4d8cacb5d";
hash = "sha256-UfFmIsukf+v62317vqclMhT3zKLbL/qNrLJC296/8vw=";
};
plugins = ["addons/sourcemod/scripting/properpregame.sp"];
runtimeInputs = [sourcemod-plugin-soap-tf2dm];
postInstall = ''
mkdir -p $out/cfg/sourcemod
cp cfg/sourcemod/* $out/cfg/sourcemod
'';
passthru = {
updateScript = nix-update-script {
extraArgs = [
"--flake"
"--version=branch"
];
};
};
})