fix(hypr dev): use absolute path to cmake
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
7d09666b23
commit
1299cb6793
1 changed files with 14 additions and 10 deletions
|
@ -2,19 +2,23 @@
|
||||||
config = {
|
config = {
|
||||||
programs.bash.shellAliases = {
|
programs.bash.shellAliases = {
|
||||||
# https://wiki.hyprland.org/Contributing-and-Debugging/#lsp-and-formatting
|
# https://wiki.hyprland.org/Contributing-and-Debugging/#lsp-and-formatting
|
||||||
"mkCMakeFiles" = "cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON";
|
"mkCMakeFiles" = "${pkgs.cmake}/bin/cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = [
|
home.packages = [
|
||||||
(pkgs.writeShellScriptBin "testChanges" ''
|
(pkgs.writeShellApplication {
|
||||||
chmod +w -fR /home/matt/git/$1/$2/{.cache,build}
|
name = "testChanges";
|
||||||
rm -r /home/matt/git/$1/$2/{.cache,build}
|
runtimeInputs = [pkgs.cmake];
|
||||||
|
text = ''
|
||||||
|
chmod +w -fR /home/matt/git/"$1/''${2:-"."}"/{.cache,build}
|
||||||
|
rm -r /home/matt/git/"$1/''${2:-"."}"/{.cache,build}
|
||||||
cd /home/matt/.nix || return
|
cd /home/matt/.nix || return
|
||||||
nix flake update "$1"
|
nix flake update "$1"
|
||||||
nh os switch
|
nh os switch
|
||||||
cd "/home/matt/git/$1/$2" || return
|
cd "/home/matt/git/$1/''${2:-"."}" || return
|
||||||
nix develop /home/matt/git/$1 -c cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
nix develop "/home/matt/git/$1" -c cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
|
||||||
'')
|
'';
|
||||||
|
})
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue