mirror of
https://codeberg.org/spire/setteam.git
synced 2026-06-03 14:24:07 +02:00
35 lines
943 B
Nix
35 lines
943 B
Nix
{
|
|
inputs = {
|
|
utils.url = "github:numtide/flake-utils";
|
|
nixpkgs.url = "nixpkgs/release-25.11";
|
|
flakelight.url = "github:nix-community/flakelight";
|
|
spire.url = "git+https://codeberg.org/spire/nix";
|
|
flakelight.inputs.nixpkgs.follows = "nixpkgs";
|
|
spire.inputs.flakelight.follows = "flakelight";
|
|
};
|
|
|
|
outputs = {
|
|
nixpkgs,
|
|
utils,
|
|
spire,
|
|
...
|
|
}:
|
|
utils.lib.eachSystem ["x86_64-linux" "i686-linux"] (system: let
|
|
overlays = [spire.overlays.default];
|
|
pkgs = (import nixpkgs) {
|
|
inherit system overlays;
|
|
};
|
|
spEnv = pkgs.sourcepawn.buildEnv (with pkgs.sourcepawn.includes; [sourcemod]);
|
|
in {
|
|
packages = rec {
|
|
setteam = pkgs.buildSourcePawnScript {
|
|
name = "setteam";
|
|
src = ./plugin/setteam.sp;
|
|
};
|
|
default = setteam;
|
|
};
|
|
devShells.default = pkgs.mkShell {
|
|
nativeBuildInputs = [spEnv];
|
|
};
|
|
});
|
|
}
|