nixos-config/modules/dev/cc.nix

23 lines
542 B
Nix
Raw Normal View History

2020-08-06 15:35:49 +00:00
# My stuff for C and C++.
{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.dev.cc = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.dev.cc.enable {
2020-08-16 08:33:44 +00:00
my.packages = with pkgs; [
2020-08-06 15:35:49 +00:00
cmake # Yo dawg, I heard you like Make.
# clang # A C compiler frontend for LLVM.
gcc # A compiler toolchain.
gdb # GNU Debugger.
llvmPackages.libcxx # When GCC has become too bloated for someone's taste.
];
};
}