mirror of
https://codeberg.org/spire/autoexec.git
synced 2026-06-03 10:14:07 +02:00
flake
This commit is contained in:
parent
e369f0a428
commit
a6425fb19d
4 changed files with 141 additions and 0 deletions
1
.envrc
Normal file
1
.envrc
Normal file
|
|
@ -0,0 +1 @@
|
|||
use flake
|
||||
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.idea
|
||||
result*
|
||||
.direnv
|
||||
102
flake.lock
generated
Normal file
102
flake.lock
generated
Normal file
|
|
@ -0,0 +1,102 @@
|
|||
{
|
||||
"nodes": {
|
||||
"flakelight": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1759818365,
|
||||
"narHash": "sha256-N8jwqZ9T1ZBznv4gJ6aaHV3FZiYyErbIqeY3cxNQ07E=",
|
||||
"owner": "nix-community",
|
||||
"repo": "flakelight",
|
||||
"rev": "eda172d7ead89292cb7f9e136a482e97e00873a4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "nix-community",
|
||||
"repo": "flakelight",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1760048741,
|
||||
"narHash": "sha256-Jj+2qvTpPwU+KD2y2QSiqg4J3vsA3as6YsPl/s/6EzQ=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "86aeb8a48968515e7e5625252e79137ccee0af8f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"ref": "release-25.05",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flakelight": "flakelight",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"spire": "spire",
|
||||
"utils": "utils"
|
||||
}
|
||||
},
|
||||
"spire": {
|
||||
"inputs": {
|
||||
"flakelight": [
|
||||
"flakelight"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1750433696,
|
||||
"narHash": "sha256-UVtSgRUzgHKUWcjsVQQM/6J8x35ly/7+P9/xbXeGLtc=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "f3b763c6b9c0c31924ac2ba1b6541c2b08ed9852",
|
||||
"revCount": 33,
|
||||
"type": "git",
|
||||
"url": "https://codeberg.org/spire/nix"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "https://codeberg.org/spire/nix"
|
||||
}
|
||||
},
|
||||
"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
|
||||
}
|
||||
35
flake.nix
Normal file
35
flake.nix
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{
|
||||
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";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
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 {
|
||||
packages = rec {
|
||||
nochat = pkgs.buildSourcePawnScript {
|
||||
name = "autoexec";
|
||||
src = ./plugin/autoexec.sp;
|
||||
};
|
||||
default = nochat;
|
||||
};
|
||||
devShells.default = pkgs.mkShell {
|
||||
nativeBuildInputs = [spEnv];
|
||||
};
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue