This commit is contained in:
Mars 2024-05-29 06:39:39 -04:00
parent a24f19d16b
commit 8db3dae6f1
Signed by: pupbrained
GPG key ID: 0FF5B8826803F895
7 changed files with 190 additions and 71 deletions

View file

@ -21,7 +21,7 @@
ccacheWrapper = super.ccacheWrapper.override {
extraConfig = ''
export CCACHE_COMPRESS=1
export CCACHE_DIR="/nix/var/cache/ccache"
export CCACHE_DIR="/var/cache/ccache"
export CCACHE_UMASK=007
if [ ! -d "$CCACHE_DIR" ]; then
echo "====="
@ -73,6 +73,7 @@
nativeBuildInputs = [
cmake
ninja
pkg-config
];
@ -96,8 +97,8 @@
++ darwinPkgs;
buildPhase = ''
cmake .
make
cmake -GNinja .
ninja
'';
installPhase = ''
@ -113,15 +114,15 @@
packages = with pkgs;
[
# builder
gnumake
cmake
ninja
pkg-config
# debugger
lldb
# fix headers not found
clang-tools
clang-tools_18
# LSP and compiler
llvm.libstdcxxClang