mirror of
https://codeberg.org/spire/docker-comp-server.git
synced 2026-11-30 05:00:52 +01:00
cleanup, flake update
This commit is contained in:
parent
2092748a46
commit
74245b04a4
9 changed files with 81 additions and 77 deletions
37
flake.nix
37
flake.nix
|
|
@ -1,31 +1,16 @@
|
|||
{
|
||||
inputs = {
|
||||
utils.url = "github:numtide/flake-utils";
|
||||
nixpkgs.url = "nixpkgs/release-24.05";
|
||||
spire.url = "github:spiretf/nix";
|
||||
spire.inputs.nixpkgs.follows = "nixpkgs";
|
||||
spire.inputs.utils.follows = "utils";
|
||||
nixpkgs.url = "nixpkgs/release-26.05";
|
||||
flakelight = {
|
||||
url = "github:nix-community/flakelight";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
spire = {
|
||||
url = "git+https://codeberg.org/spire/nix";
|
||||
inputs.flakelight.follows = "flakelight";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
utils,
|
||||
spire,
|
||||
}:
|
||||
utils.lib.eachSystem spire.systems (system: let
|
||||
overlays = [spire.overlays.default];
|
||||
pkgs = (import nixpkgs) {
|
||||
inherit system overlays;
|
||||
};
|
||||
inherit (pkgs) lib;
|
||||
spEnv = pkgs.sourcepawn.buildEnv (with pkgs.sourcepawn.includes; [sourcemod]);
|
||||
in rec {
|
||||
packages = rec {
|
||||
inherit spEnv;
|
||||
};
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = with pkgs; [spEnv];
|
||||
};
|
||||
});
|
||||
outputs = {spire, ...}:
|
||||
spire ./. {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue