mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
shell.nix: Add a flag for using clang
This commit is contained in:
parent
8af062f372
commit
1102c77919
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
|
{ useClang ? false }:
|
||||||
|
|
||||||
with import <nixpkgs> {};
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
(if useClang then clangStdenv else stdenv).mkDerivation {
|
||||||
name = "nix";
|
name = "nix";
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue