mirror of
https://codeberg.org/spire/nix.git
synced 2026-06-03 18:04:10 +02:00
package srcds wip
This commit is contained in:
parent
f3b763c6b9
commit
8e26d5f7ba
6 changed files with 189 additions and 13 deletions
25
flake.nix
25
flake.nix
|
|
@ -1,9 +1,21 @@
|
|||
{
|
||||
inputs = {
|
||||
flakelight.url = "github:nix-community/flakelight";
|
||||
nixpkgs.url = "nixpkgs/nixos-25.05";
|
||||
flakelight = {
|
||||
url = "github:nix-community/flakelight";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
steam-fetcher = {
|
||||
url = "github:nix-community/steam-fetcher";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {flakelight, ...}: let
|
||||
outputs = {
|
||||
flakelight,
|
||||
steam-fetcher,
|
||||
...
|
||||
}: let
|
||||
inherit (builtins) listToAttrs map;
|
||||
inheritPkgs = names:
|
||||
listToAttrs (map (name: {
|
||||
|
|
@ -13,8 +25,13 @@
|
|||
names);
|
||||
in
|
||||
flakelight ./. {
|
||||
nixpkgs.config = {allowUnfree = true;};
|
||||
|
||||
systems = ["x86_64-linux" "i686-linux"];
|
||||
withOverlays = [(import ./nix/overlay.nix)];
|
||||
withOverlays = [
|
||||
steam-fetcher.overlays.default
|
||||
(import ./nix/overlay.nix)
|
||||
];
|
||||
|
||||
formatters = pkgs:
|
||||
with pkgs; {
|
||||
|
|
@ -26,7 +43,7 @@
|
|||
metamods = pkgs.lib.mapAttrs (name: sdk: pkgs.metamod-source.override {sdks = {${name} = sdk;};}) pkgs.hl2sdk;
|
||||
};
|
||||
|
||||
packages = inheritPkgs ["ambuild" "sourcepawn" "sourcemod-includes" "sourcemod-include-library"];
|
||||
packages = inheritPkgs ["ambuild" "sourcepawn" "sourcemod-includes" "sourcemod-include-library" "srcds-tf2"];
|
||||
|
||||
checks = {
|
||||
buildTestScript = {pkgs, ...}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue