1
0
Fork 0
mirror of https://codeberg.org/spire/sm_whitelist.git synced 2026-06-03 10:14:07 +02:00
This commit is contained in:
Robin Appelman 2025-08-29 20:57:52 +02:00
commit d9bde0329e
4 changed files with 124 additions and 0 deletions

1
.envrc Normal file
View file

@ -0,0 +1 @@
use flake

3
.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
.idea
result*
.direnv

84
flake.lock generated Normal file
View file

@ -0,0 +1,84 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1756493475,
"narHash": "sha256-5BZo039WuAgio/qvDZgyweC1KpX+mNGR5UUZ7b05tzk=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "8486eafd6b2afe131d7323ce8a1cc5a11d200ef7",
"type": "github"
},
"original": {
"id": "nixpkgs",
"ref": "release-25.05",
"type": "indirect"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs",
"spire": "spire",
"utils": "utils"
}
},
"spire": {
"inputs": {
"nixpkgs": [
"nixpkgs"
],
"utils": [
"utils"
]
},
"locked": {
"lastModified": 1746311811,
"narHash": "sha256-nmoaj+/Y5Z/1x1gxV9MYOhdgEGt9tpCbbuJ9KJVahZA=",
"owner": "spiretf",
"repo": "nix",
"rev": "acb7f7f4f387a6850522b7e6c0ea0bd02b866830",
"type": "github"
},
"original": {
"owner": "spiretf",
"repo": "nix",
"type": "github"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
},
"utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

36
flake.nix Normal file
View file

@ -0,0 +1,36 @@
{
inputs = {
utils.url = "github:numtide/flake-utils";
nixpkgs.url = "nixpkgs/release-25.05";
spire.url = "github:spiretf/nix";
spire.inputs.nixpkgs.follows = "nixpkgs";
spire.inputs.utils.follows = "utils";
};
outputs = {
self,
nixpkgs,
utils,
spire,
}:
utils.lib.eachSystem spire.systems (system: let
overlays = [spire.overlays.default];
pkgs = (import nixpkgs) {
inherit system overlays;
};
spEnv = pkgs.sourcepawn.buildEnv (with pkgs.sourcepawn.includes; [sourcemod curl]);
in {
packages = rec {
inherit spEnv;
whitelisttf = pkgs.buildSourcePawnScript {
name = "whitelisttf";
src = ./plugin/whitelisttf.sp;
includes = with pkgs.sourcepawn.includes; [sourcemod curl];
};
default = whitelisttf;
};
devShells.default = pkgs.mkShell {
nativeBuildInputs = [spEnv];
};
});
}