flake reorg

This commit is contained in:
Robin Appelman 2026-10-28 22:08:24 +01:00
commit bbc940cdfe
Signed by: robin
SSH key fingerprint: SHA256:kifqgrqnut7q1YUIrI0AdMNC23qiKAS/T9uGFmIYvbE
3 changed files with 69 additions and 82 deletions

View file

@ -1,36 +1,18 @@
{
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";
nixpkgs.url = "nixpkgs/nixos-26.05";
flakelight = {
url = "github:nix-community/flakelight";
inputs.nixpkgs.follows = "nixpkgs";
};
spire = {
url = "git+https://codeberg.org/spire/nix";
inputs.nixpkgs.follows = "nixpkgs";
inputs.flakelight.follows = "flakelight";
};
};
outputs = {
self,
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 rec {
packages = rec {
nochat = pkgs.buildSourcePawnScript {
name = "nochat";
src = ./plugin/nochat.sp;
};
default = nochat;
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = with pkgs; [spEnv];
};
});
outputs =
{ spire, ... }:
spire ./. { };
}