a75c64d04a
This puts a hard dependency on 20.09, but that's to be expected.
28 lines
537 B
Nix
28 lines
537 B
Nix
# 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.
|
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
with lib.my;
|
|
let cfg = config.modules.dev.cc;
|
|
in {
|
|
options.modules.dev.cc = {
|
|
enable = mkBoolOpt false;
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
user.packages = with pkgs; [
|
|
clang
|
|
gcc
|
|
bear
|
|
gdb
|
|
cmake
|
|
llvmPackages.libcxx
|
|
];
|
|
};
|
|
}
|