feat: add bsprak toolchain dependencies

This commit is contained in:
Jacob Bachmann 2024-10-18 17:41:33 +02:00
parent 895c694bf7
commit c3e6dc82cc
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
3 changed files with 49 additions and 0 deletions

46
modules/core/bsprak.nix Normal file
View file

@ -0,0 +1,46 @@
{ lib, pkgs, ... }:
{
options.bchmnn = {
bsprak = {
enable = lib.mkEnableOption "bsprak";
};
};
config = {
environment = {
# Tell nix to link header files of all installed packages
# in /run/current-system/sw/include
pathsToLink = [ "/include" ];
variables = {
# Tell compilers where to find the header files
CPATH = "/run/current-system/sw/include";
# Tell linker where to find shared objects
LIBRARY_PATH = "/run/current-system/sw/lib";
};
systemPackages = with pkgs; [
git
gcc
gnumake
cmake
python3
ninja
texinfo
pkg-config
bison
flex
curl
# the `.dev` syntax tells nix to also provide header files
gmp.dev
mpfr.dev
libmpc
glib.dev
pixman
expat.dev
ncurses5.dev
];
};
};
}