diff options
| author | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-08-29 23:38:28 +1000 |
|---|---|---|
| committer | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-08-29 23:38:28 +1000 |
| commit | 81aa5324f4962a32aa69ab03aebffd9644ee551a (patch) | |
| tree | 031e04f080f1a9636f5d6a5b4cac55f0b3fbe613 | |
| parent | plugin/cim: update on size change (diff) | |
| download | caelestia-shell-81aa5324f4962a32aa69ab03aebffd9644ee551a.tar.gz caelestia-shell-81aa5324f4962a32aa69ab03aebffd9644ee551a.tar.bz2 caelestia-shell-81aa5324f4962a32aa69ab03aebffd9644ee551a.zip | |
dev: better direnv
Move rebuild logic to direnv instead of nix
| -rw-r--r-- | .envrc | 11 | ||||
| -rw-r--r-- | flake.nix | 7 |
2 files changed, 11 insertions, 7 deletions
@@ -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"; - ''; }; }); |