Skip to content

Instantly share code, notes, and snippets.

@LinArcX
Created March 20, 2020 16:57
Show Gist options
  • Select an option

  • Save LinArcX/836013e6540324949a2200bb10df023b to your computer and use it in GitHub Desktop.

Select an option

Save LinArcX/836013e6540324949a2200bb10df023b to your computer and use it in GitHub Desktop.
let
pkgs = import <nixpkgs> {};
in
pkgs.mkShell {
buildInputs = [
pkgs.cmake
pkgs.clang
pkgs.clang-analyzer
];
shellHook = ''
export CMAKE=${pkgs.cmake}/bin/cmake
export CLANG=${pkgs.clang}/bin/clang
export CLANGXX=${pkgs.clang}/bin/clang++
export CLANGD=${pkgs.clang.clangd}/bin/clangd
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment