build: fix nix support, update flake

This commit is contained in:
electria 2026-10-08 09:51:28 -07:00
commit 1f9ac58baa
Signed by: electria
SSH key fingerprint: SHA256:8LlB3ucPbBHqozqkhsNbaV5oG3SlzzqUj8FZDL6IPQs
3 changed files with 19 additions and 20 deletions

4
.gitignore vendored
View file

@ -1,3 +1,5 @@
/bin
/obj
config.ini
config.ini
/result

29
flake.lock generated
View file

@ -3,35 +3,32 @@
"beaker-src": {
"flake": false,
"locked": {
"lastModified": 1775244490,
"narHash": "sha256-4TJv7X6D0l4rEbTRKf47gU43L8G5uJgxxtsqMkVixQY=",
"lastModified": 1790704008,
"narHash": "sha256-Al/BE7uVRSmUGF/t1m0pWxF9jNgzdCVUrc5ZHkcPiQg=",
"ref": "refs/heads/master",
"rev": "3fab89ecf8f4c664477a82add660d28db87357b4",
"revCount": 27,
"rev": "10be7f581fb828e74f064ea7ad4fb0534ee8540a",
"revCount": 46,
"shallow": false,
"type": "git",
"url": "https://git.bwaaa.monster/beaker"
"url": "https://git.bwaaa.space/beaker"
},
"original": {
"shallow": false,
"type": "git",
"url": "https://git.bwaaa.monster/beaker"
"url": "https://git.bwaaa.space/beaker"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1773734432,
"narHash": "sha256-IF5ppUWh6gHGHYDbtVUyhwy/i7D261P7fWD1bPefOsw=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "cda48547b432e8d3b18b4180ba07473762ec8558",
"type": "github"
"lastModified": 1791456040,
"narHash": "sha256-gRZ/s8WQJ2CsXdhcDVQH34qxuL0MuMCOs3aBiK1Prsw=",
"rev": "e7439b6b14ad3cc35d05608ebca9bce01a25f5f8",
"type": "tarball",
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1087755.e7439b6b14ad/nixexprs.tar.zst?lastModified=1791456040&rev=e7439b6b14ad3cc35d05608ebca9bce01a25f5f8"
},
"original": {
"owner": "NixOS",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
"type": "tarball",
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst"
}
},
"root": {

View file

@ -1,8 +1,8 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst";
beaker-src = {
url = "git+https://git.bwaaa.monster/beaker?shallow=0";
url = "git+https://git.bwaaa.space/beaker?shallow=0";
flake = false;
};
};
@ -53,7 +53,7 @@
preBuild = ''
makeFlagsArray+=(
"PREFIX=$out"
"CFLAGS=-Wall -Wextra -O2 -Isrc -I${pkgs.libxml2.dev}/include/libxml2"
"CFLAGS=-Wall -Wextra -O2 -Isrc -I${pkgs.libxml2.dev}/include/libxml2 -I${beaker}/include/beaker.h"
"LIBS=-lbeaker -lcurl -lxml2 -lpthread -lm -lssl -lcrypto"
)
'';