cleanup, flake update

This commit is contained in:
Robin Appelman 2026-11-20 20:25:26 +01:00
commit 74245b04a4
9 changed files with 81 additions and 77 deletions

View file

@ -13,15 +13,15 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3 uses: https://github.com/docker/setup-buildx-action@v4
- name: Login to DockerHub - name: Login to DockerHub
uses: https://github.com/docker/login-action@v3 uses: https://github.com/docker/login-action@v4
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push - name: Build and push
id: docker_build id: docker_build
uses: https://github.com/docker/build-push-action@v6 uses: https://github.com/docker/build-push-action@v7
with: with:
push: true push: true
load: true load: true

View file

@ -1,6 +1,6 @@
FROM spiretf/docker-tf2-server FROM spiretf/docker-tf2-server
ADD ./socket_3.0.1.zip ./ExtendHumiliation.smx / ADD ./socket_3.0.1.zip ./plugin/ExtendHumiliation.smx /
ADD ./maps.sh ./sourcemod.sh ./plugins.sh ./configs.sh $SERVER/ ADD ./maps.sh ./sourcemod.sh ./plugins.sh ./configs.sh $SERVER/
RUN $SERVER/maps.sh \ RUN $SERVER/maps.sh \
&& $SERVER/sourcemod.sh \ && $SERVER/sourcemod.sh \

Binary file not shown.

122
flake.lock generated
View file

@ -1,80 +1,102 @@
{ {
"nodes": { "nodes": {
"flakelight": {
"inputs": {
"nixpkgs": [
"nixpkgs"
]
},
"locked": {
"lastModified": 1794865725,
"narHash": "sha256-YJ2D++LP38iOxALjoyU0+sLkB1DMzZC6LyyDFDNENXc=",
"owner": "nix-community",
"repo": "flakelight",
"rev": "cc76eba994e4936c567d29a67add3649e882a534",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "flakelight",
"type": "github"
}
},
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1728502498, "lastModified": 1795201826,
"narHash": "sha256-PcHsk4n1cKYBePd6mmu/OkC/AqKlocYRpXQv3OlzasA=", "narHash": "sha256-WudsuHZ4xsqepBWcWVLj2QL0+Zl5G4K6i6D5NfC0EIY=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "7e1395464c01adb6be404b315202366f73305ace", "rev": "9c21a1f0b67833c164ca94170a9ab28bd8e490fc",
"type": "github" "type": "github"
}, },
"original": { "original": {
"id": "nixpkgs", "id": "nixpkgs",
"ref": "release-24.05", "ref": "release-26.05",
"type": "indirect"
}
},
"nixpkgs_2": {
"locked": {
"lastModified": 1783389287,
"narHash": "sha256-0xIy4dVLqq47rA+mRy0hXDfjhQd4E5PoIns/RmB7nR4=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "0ad6f47ea4fe188f4bc8f0380f93ae8523337c6c",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "nixos-26.05",
"type": "indirect" "type": "indirect"
} }
}, },
"root": { "root": {
"inputs": { "inputs": {
"flakelight": "flakelight",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"spire": "spire", "spire": "spire"
"utils": "utils"
} }
}, },
"spire": { "spire": {
"inputs": { "inputs": {
"nixpkgs": [ "flakelight": [
"nixpkgs" "flakelight"
], ],
"utils": [ "nixpkgs": "nixpkgs_2",
"utils" "steam-fetcher": "steam-fetcher"
},
"locked": {
"lastModified": 1794149326,
"narHash": "sha256-mK/1QHNkZ9S+z6KiRQkznmWSa5l+9Dot1KeqBCNF7oM=",
"ref": "refs/heads/main",
"rev": "703a7cbb256b05155b1f24ab6bb2d6a4d8b44fd0",
"revCount": 102,
"type": "git",
"url": "https://codeberg.org/spire/nix"
},
"original": {
"type": "git",
"url": "https://codeberg.org/spire/nix"
}
},
"steam-fetcher": {
"inputs": {
"nixpkgs": [
"spire",
"nixpkgs"
] ]
}, },
"locked": { "locked": {
"lastModified": 1711219822, "lastModified": 1758622040,
"narHash": "sha256-gVxfFaWqK04qIqjGIZnGWE/0QTr5wZdeGudlGqnDfVI=", "narHash": "sha256-BRUZZoQDCD1qByJjHm4YKipQlB2PburWLG9Iaggr8XQ=",
"owner": "spiretf", "owner": "nix-community",
"repo": "nix", "repo": "steam-fetcher",
"rev": "6007526a96065796476a0b489fe0e259adae1bb9", "rev": "ab5e3a0828b4b179feb548c57be584ce812956a8",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "spiretf", "owner": "nix-community",
"repo": "nix", "repo": "steam-fetcher",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1726560853,
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github" "type": "github"
} }
} }

View file

@ -1,31 +1,16 @@
{ {
inputs = { inputs = {
utils.url = "github:numtide/flake-utils"; nixpkgs.url = "nixpkgs/release-26.05";
nixpkgs.url = "nixpkgs/release-24.05"; flakelight = {
spire.url = "github:spiretf/nix"; url = "github:nix-community/flakelight";
spire.inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
spire.inputs.utils.follows = "utils"; };
spire = {
url = "git+https://codeberg.org/spire/nix";
inputs.flakelight.follows = "flakelight";
};
}; };
outputs = { outputs = {spire, ...}:
self, spire ./. {};
nixpkgs,
utils,
spire,
}:
utils.lib.eachSystem spire.systems (system: let
overlays = [spire.overlays.default];
pkgs = (import nixpkgs) {
inherit system overlays;
};
inherit (pkgs) lib;
spEnv = pkgs.sourcepawn.buildEnv (with pkgs.sourcepawn.includes; [sourcemod]);
in rec {
packages = rec {
inherit spEnv;
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [spEnv];
};
});
} }

BIN
pause.smx

Binary file not shown.

View file

@ -75,9 +75,6 @@ wget -nv https://codeberg.org/demostf/plugin/raw/ba1b642b92585af142a885af7159fa6
# autoexec # autoexec
wget -nv https://codeberg.org/spire/autoexec/raw/master/plugin/autoexec.smx wget -nv https://codeberg.org/spire/autoexec/raw/master/plugin/autoexec.smx
## Pause
wget -nv https://codeberg.org/spire/docker-comp-server/raw/master/pause.smx
## NoCheats ## NoCheats
wget -nv https://codeberg.org/spire/nocheats/raw/master/plugin/nocheats.smx wget -nv https://codeberg.org/spire/nocheats/raw/master/plugin/nocheats.smx