diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-01-24T09·53+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-01-24T09·53+0100 |
commit | 1102c77919765b22824ee481afd3bbd618ddb457 (patch) | |
tree | e41b88cb5e2cf6322653afcbd7a558de018bfe76 /shell.nix | |
parent | 8af062f372ae5db6a90700641f15d98505b4a839 (diff) |
shell.nix: Add a flag for using clang
Diffstat (limited to 'shell.nix')
-rw-r--r-- | shell.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/shell.nix b/shell.nix index dd448410554e..4c1608230cee 100644 --- a/shell.nix +++ b/shell.nix @@ -1,6 +1,8 @@ +{ useClang ? false }: + with import <nixpkgs> {}; -stdenv.mkDerivation { +(if useClang then clangStdenv else stdenv).mkDerivation { name = "nix"; buildInputs = |