build: fix nix support, update flake
This commit is contained in:
parent
6d087046b8
commit
1f9ac58baa
3 changed files with 19 additions and 20 deletions
|
|
@ -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"
|
||||
)
|
||||
'';
|
||||
|
|
|
|||
Loading…
Reference in a new issue