1
0
Fork 0
mirror of https://codeberg.org/spire/autoexec.git synced 2026-08-02 12:14:52 +02:00
This commit is contained in:
Robin Appelman 2025-10-21 22:15:02 +02:00
commit a6425fb19d
4 changed files with 141 additions and 0 deletions

35
flake.nix Normal file
View file

@ -0,0 +1,35 @@
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/release-25.05";
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 {
nochat = pkgs.buildSourcePawnScript {
name = "autoexec";
src = ./plugin/autoexec.sp;
};
default = nochat;
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = [spEnv];
};
});
}