diff options
Diffstat (limited to 'shells')
-rw-r--r-- | shells/c.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/shells/c.nix b/shells/c.nix new file mode 100644 index 000000000000..cbcc9db39643 --- /dev/null +++ b/shells/c.nix @@ -0,0 +1,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 + ''; +} |