mirror of
https://codeberg.org/spire/nochat.git
synced 2026-11-30 10:10:47 +01:00
flake reorg
This commit is contained in:
parent
7c161d4eef
commit
bbc940cdfe
3 changed files with 69 additions and 82 deletions
44
flake.nix
44
flake.nix
|
|
@ -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 ./. { };
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue