From 3d8a2d9e283f700433ce6098255ca36d0dad6f2a Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Tue, 6 Jul 2021 13:09:31 +0000 Subject: shells/c: init --- shells/c.nix | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 shells/c.nix (limited to 'shells/c.nix') 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 + ''; +} -- cgit 1.4.1