mirror of
https://codeberg.org/spire/nix.git
synced 2026-06-03 18:04:10 +02:00
fmt
This commit is contained in:
parent
3edf9df237
commit
f1707cebd8
9 changed files with 314 additions and 174 deletions
19
flake.nix
19
flake.nix
|
|
@ -9,17 +9,18 @@
|
|||
nixpkgs,
|
||||
utils,
|
||||
}: let
|
||||
inherit (nixpkgs.lib.lists) concatMap;
|
||||
inherit (builtins) map;
|
||||
systems = with utils.lib.system; [x86_64-linux i686-linux];
|
||||
in utils.lib.eachSystem systems (system: let
|
||||
inherit (nixpkgs.lib.lists) concatMap;
|
||||
inherit (builtins) map;
|
||||
systems = with utils.lib.system; [x86_64-linux i686-linux];
|
||||
in
|
||||
utils.lib.eachSystem systems (system: let
|
||||
inherit (builtins) mapAttrs attrNames elem;
|
||||
inherit (pkgs) lib;
|
||||
inherit (lib.attrsets) filterAttrs;
|
||||
overlays = [(import ./pkgs)];
|
||||
pkgs = (import nixpkgs) {
|
||||
inherit system overlays;
|
||||
# crossSystem = { config = "i686-unknown-linux-gnu"; };
|
||||
# crossSystem = { config = "i686-unknown-linux-gnu"; };
|
||||
};
|
||||
testScript = pkgs.fetchurl {
|
||||
url = "https://raw.githubusercontent.com/spiretf/nocheats/master/plugin/nocheats.sp";
|
||||
|
|
@ -30,7 +31,10 @@
|
|||
packages = rec {
|
||||
inherit (pkgs) ambuild sourcemod sourcepawn sourcemod-includes buildSourcePawnScript hl2sdk;
|
||||
sourcemods = mapAttrs (name: sdk: pkgs.sourcemod.override {sdks = {${name} = sdk;};}) hl2sdk;
|
||||
buildTestScript = buildSourcePawnScript {name = "test"; src = testScript;};
|
||||
buildTestScript = buildSourcePawnScript {
|
||||
name = "test";
|
||||
src = testScript;
|
||||
};
|
||||
};
|
||||
|
||||
devShells.default = pkgs.mkShell {
|
||||
|
|
@ -40,7 +44,8 @@
|
|||
sdks = attrNames platformSdks;
|
||||
|
||||
overlays.default = import ./pkgs;
|
||||
}) // {
|
||||
})
|
||||
// {
|
||||
matrix = {
|
||||
include = concatMap (system: map (sdk: {inherit system sdk;}) self.sdks.${system}) systems;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue