mirror of
https://codeberg.org/spire/setteam.git
synced 2026-06-03 14:24:07 +02:00
flake
This commit is contained in:
parent
8f042e4caa
commit
7fb0c5694f
4 changed files with 179 additions and 0 deletions
35
flake.nix
Normal file
35
flake.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
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];
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue