Created
March 22, 2020 07:19
-
-
Save LinArcX/495041d089ab32dec7f6a3860dceb187 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.mkDerivation rec { | |
pname = "mdv"; | |
version = "1.0.0"; | |
name = "${pname}${version}"; | |
buildInputs = [ | |
cmake | |
clang-tools | |
clang-analyzer | |
man-db | |
clang-manpages | |
man | |
man-pages | |
posix_man_pages | |
glibcLocales | |
]; | |
shellHook = '' | |
export NAME=${pname} | |
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 | |
''; | |
`LOCALE_ARCHIVE=${glibcLocales}/lib/locale/locale-archive;` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment