mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
26 lines
542 B
Nix
Executable File
26 lines
542 B
Nix
Executable File
# My stuff for C and C++.
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.modules.dev.cc;
|
|
in {
|
|
options.modules.dev.cc = {
|
|
enable = mkOption {
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
my.packages = with pkgs; [
|
|
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.
|
|
];
|
|
};
|
|
}
|