summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorDavi Ribeiro <104164579+Markus328@users.noreply.github.com>2025-08-29 01:07:47 -0300
committerGitHub <noreply@github.com>2025-08-29 14:07:47 +1000
commitb648477b91e3cb1aefd5b6b8fdd94ffbbd79fcb1 (patch)
tree4782f00bfd90b636231c77124d196446514f2be3 /flake.nix
parentci: no cpack (diff)
downloadcaelestia-shell-b648477b91e3cb1aefd5b6b8fdd94ffbbd79fcb1.tar.gz
caelestia-shell-b648477b91e3cb1aefd5b6b8fdd94ffbbd79fcb1.tar.bz2
caelestia-shell-b648477b91e3cb1aefd5b6b8fdd94ffbbd79fcb1.zip
nix: better nix develop + refactor (#490)
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix13
1 files changed, 10 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index edb46bd..493723a 100644
--- a/flake.nix
+++ b/flake.nix
@@ -45,10 +45,17 @@
default = let
shell = self.packages.${pkgs.system}.caelestia-shell;
in
- pkgs.mkShellNoCC {
- inputsFrom = [shell];
+ pkgs.mkShell {
+ inputsFrom = [shell shell.plugin shell.assets];
packages = with pkgs; [material-symbols rubik nerd-fonts.caskaydia-cove];
- CAELESTIA_LIB_DIR = "${shell}/lib";
+
+ 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/assets/cpp";
+ export QML2_IMPORT_PATH="$PWD/build/qml";
+ '';
};
});