mirror of
https://codeberg.org/spire/nix.git
synced 2026-08-02 12:25:00 +02:00
package sourcemod-plugin-properpregame
This commit is contained in:
parent
10d8360071
commit
1fc1db846d
4 changed files with 42 additions and 2 deletions
|
|
@ -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
|
||||
];
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 {};
|
||||
}
|
||||
|
|
|
|||
33
nix/sourcemod/plugins/properpregame.nix
Normal file
33
nix/sourcemod/plugins/properpregame.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue