feat: add bsprak toolchain dependencies
This commit is contained in:
parent
895c694bf7
commit
c3e6dc82cc
3 changed files with 49 additions and 0 deletions
46
modules/core/bsprak.nix
Normal file
46
modules/core/bsprak.nix
Normal 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
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
./applications.nix
|
||||
./audio.nix
|
||||
./bluetooth.nix
|
||||
./bsprak.nix
|
||||
./keyd.nix
|
||||
./network.nix
|
||||
./nvidia.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue