shell.nix: Add a flag for using clang

This commit is contained in:
Eelco Dolstra 2017-01-24 10:53:18 +01:00
parent 8af062f372
commit 1102c77919
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -1,6 +1,8 @@
{ useClang ? false }:
with import <nixpkgs> {};
stdenv.mkDerivation {
(if useClang then clangStdenv else stdenv).mkDerivation {
name = "nix";
buildInputs =