51 lines
1,005 B
Nix
51 lines
1,005 B
Nix
{ 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
|
|
gmp.dev
|
|
mpfr
|
|
mpfr.dev
|
|
libmpc
|
|
glib
|
|
glib.dev
|
|
pixman
|
|
expat
|
|
expat.dev
|
|
ncurses5
|
|
ncurses5.dev
|
|
];
|
|
};
|
|
};
|
|
|
|
}
|