about summary refs log tree commit diff
path: root/shells
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-07-06 13:09:31 +0000
committerAlyssa Ross <hi@alyssa.is>2021-07-06 13:10:07 +0000
commit3d8a2d9e283f700433ce6098255ca36d0dad6f2a (patch)
tree0d840e343747fc1f31bb362a2e00d33f5557aa98 /shells
parenteededce290661953e10316e762de8eb33757452e (diff)
downloadnixlib-3d8a2d9e283f700433ce6098255ca36d0dad6f2a.tar
nixlib-3d8a2d9e283f700433ce6098255ca36d0dad6f2a.tar.gz
nixlib-3d8a2d9e283f700433ce6098255ca36d0dad6f2a.tar.bz2
nixlib-3d8a2d9e283f700433ce6098255ca36d0dad6f2a.tar.lz
nixlib-3d8a2d9e283f700433ce6098255ca36d0dad6f2a.tar.xz
nixlib-3d8a2d9e283f700433ce6098255ca36d0dad6f2a.tar.zst
nixlib-3d8a2d9e283f700433ce6098255ca36d0dad6f2a.zip
shells/c: init
Diffstat (limited to 'shells')
-rw-r--r--shells/c.nix18
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
+  '';
+}