mirror of
https://codeberg.org/spire/nix.git
synced 2026-08-02 12:25:00 +02:00
package all f2 sourcemod plugins
This commit is contained in:
parent
1fc1db846d
commit
0a6beedf7b
5 changed files with 54 additions and 29 deletions
15
flake.nix
15
flake.nix
|
|
@ -71,9 +71,18 @@
|
|||
"sourcemod-plugin-setteam"
|
||||
"sourcemod-plugin-banned"
|
||||
"sourcemod-plugin-who"
|
||||
"sourcemod-plugin-afk"
|
||||
"sourcemod-plugin-demostf"
|
||||
"sourcemod-plugin-properpregame"
|
||||
"sourcemod-plugin-afk"
|
||||
"sourcemod-plugin-classwarning"
|
||||
"sourcemod-plugin-fixstvslot"
|
||||
"sourcemod-plugin-logstf"
|
||||
"sourcemod-plugin-medicstats"
|
||||
"sourcemod-plugin-pause"
|
||||
"sourcemod-plugin-recordstv"
|
||||
"sourcemod-plugin-restorescore"
|
||||
"sourcemod-plugin-supstats2"
|
||||
"sourcemod-plugin-waitforstv"
|
||||
]
|
||||
// {
|
||||
test = pkgs:
|
||||
|
|
@ -83,9 +92,7 @@
|
|||
};
|
||||
sourcemod = true;
|
||||
plugins = with pkgs; [
|
||||
sourcemod-plugin-soap-tf2dm
|
||||
sourcemod-plugin-properpregame
|
||||
srctvplus
|
||||
sourcemod-plugin-logstf
|
||||
];
|
||||
};
|
||||
testScript = pkgs:
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
{mkF2Plugin}:
|
||||
mkF2Plugin (finalAttrs: {
|
||||
pname = "sourcemod-plugin-afk";
|
||||
name = "afk";
|
||||
})
|
||||
12
nix/sourcemod/plugins/f2.json
Normal file
12
nix/sourcemod/plugins/f2.json
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
[
|
||||
{ "name": "afk" },
|
||||
{ "name": "classwarning" },
|
||||
{ "name": "fixstvslot" },
|
||||
{ "name": "logstf", "runtimeInputs": ["sourcemod-addon-steamworks"] },
|
||||
{ "name": "medicstats" },
|
||||
{ "name": "pause" },
|
||||
{ "name": "recordstv" },
|
||||
{ "name": "restorescore" },
|
||||
{ "name": "supstats2" },
|
||||
{ "name": "waitforstv" }
|
||||
]
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
final: prev: {
|
||||
final: prev: let
|
||||
inherit (prev.lib) listToAttrs map importJSON;
|
||||
in
|
||||
{
|
||||
mkSourcemodPlugin = final.callPackage ./builder/plugin.nix {};
|
||||
mkSpirePlugin = final.callPackage ./builder/spire-plugin.nix {};
|
||||
mkF2Plugin = final.callPackage ./builder/f2-plugin.nix {};
|
||||
|
|
@ -14,7 +17,13 @@ final: prev: {
|
|||
sourcemod-plugin-setteam = final.callPackage ./setteam.nix {};
|
||||
sourcemod-plugin-banned = final.callPackage ./banned.nix {};
|
||||
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 {};
|
||||
}
|
||||
// listToAttrs (map (info: {
|
||||
name = "sourcemod-plugin-${info.name}";
|
||||
value = final.mkF2Plugin {
|
||||
name = info.name;
|
||||
runtimeInputs = map (input: final.${input}) (info.runtimeInputs or []);
|
||||
};
|
||||
}) (importJSON ./f2.json))
|
||||
|
|
|
|||
|
|
@ -21,6 +21,8 @@ def main [] {
|
|||
# nix-update --flake --use-update-script sourcemod-includes
|
||||
|
||||
list_plugins | each {|plugin| nix-update --flake --use-update-script $"sourcemod-plugin-($plugin)"}
|
||||
# all F2 plugins are updated in one go
|
||||
nix-update --flake --use-update-script sourcemod-plugin-afk
|
||||
|
||||
nix fmt
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue