dev: better direnv
Move rebuild logic to direnv instead of nix
This commit is contained in:
parent
4a6fc3c49c
commit
81aa5324f4
2 changed files with 11 additions and 7 deletions
11
.envrc
11
.envrc
|
|
@ -1 +1,12 @@
|
|||
use flake
|
||||
|
||||
shopt -s globstar
|
||||
watch_file assets/cpp/**/*.cpp
|
||||
watch_file assets/cpp/**/*.hpp
|
||||
watch_file plugin/**/*.cpp
|
||||
watch_file plugin/**/*.hpp
|
||||
|
||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DDISTRIBUTOR=direnv
|
||||
cmake --build build
|
||||
export CAELESTIA_LIB_DIR="$PWD/build/lib";
|
||||
export QML2_IMPORT_PATH="$PWD/build/qml";
|
||||
|
|
|
|||
|
|
@ -49,14 +49,7 @@
|
|||
pkgs.mkShell {
|
||||
inputsFrom = [shell shell.plugin shell.assets];
|
||||
packages = with pkgs; [material-symbols rubik nerd-fonts.caskaydia-cove];
|
||||
|
||||
CAELESTIA_XKB_RULES_PATH = "${pkgs.xkeyboard-config}/share/xkeyboard-config-2/rules/base.lst";
|
||||
shellHook = ''
|
||||
cmake -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug
|
||||
cmake --build build
|
||||
export CAELESTIA_LIB_DIR="$PWD/build/lib";
|
||||
export QML2_IMPORT_PATH="$PWD/build/qml";
|
||||
'';
|
||||
};
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue