2020-01-12 23:11:02 -08:00
|
|
|
# modules/dev/cc.nix --- C & C++
|
|
|
|
#
|
|
|
|
# I love C. I tolerate C++. I adore C with a few choice C++ features tacked on.
|
|
|
|
# Liking C/C++ seems to be an unpopular opinion. It's my guilty secret, so don't
|
|
|
|
# tell anyone pls.
|
2019-08-06 10:56:54 -07:00
|
|
|
|
2020-03-28 22:48:43 -07:00
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
with lib;
|
2019-08-06 10:56:54 -07:00
|
|
|
{
|
2020-03-28 22:48:43 -07:00
|
|
|
options.modules.dev.cc = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
2019-08-06 10:56:54 -07:00
|
|
|
|
2020-03-28 22:48:43 -07:00
|
|
|
config = mkIf config.modules.dev.cc.enable {
|
|
|
|
my.packages = with pkgs; [
|
|
|
|
clang
|
|
|
|
gcc
|
|
|
|
bear
|
|
|
|
gdb
|
|
|
|
cmake
|
|
|
|
llvmPackages.libcxx
|
|
|
|
];
|
|
|
|
};
|
2019-08-06 10:56:54 -07:00
|
|
|
}
|