about summary refs log tree commit diff
path: root/shells/c.nix
blob: cbcc9db3964382d6cb5a0e9f867a7678fe0a2147 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ pkgs ? import ../. {} }:
with pkgs;

stdenv.mkDerivation {
  name = "c-shell";
  buildInputs = [
    autoconf automake bc bear bison bmake llvmPackages_latest.clang clang-tools
    cmake flex gettext libtool meson ninja pkg-config
  ];

  NIX_CFLAGS_COMPILE = "-g3 -O0";

  hardeningDisable = [ "fortify" ];

  buildCommand = ''
    printf "%s\n" ''${buildInputsArray[*]} > $out
  '';
}