Created
March 21, 2020 10:38
-
-
Save LinArcX/1952c2d64b1cca43f4e52a45272a2ff0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with import <nixpkgs> {}; | |
{ clangStdenv, pkgs }: | |
clangStdenv.mkDerivation rec { | |
name = "lcmake${version}"; | |
version = "1.0.0"; | |
buildInputs = with pkgs; [ | |
cmake | |
clang | |
clang-tools | |
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-tools}/bin/clangd | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment