2024-08-02 22:32:29 -04:00
|
|
|
{pkgs, ...}: {
|
|
|
|
config = {
|
|
|
|
programs.bash.shellAliases = {
|
|
|
|
# https://wiki.hyprland.org/Contributing-and-Debugging/#lsp-and-formatting
|
2024-11-14 20:18:59 -05:00
|
|
|
"mkCMakeFiles" = "${pkgs.cmake}/bin/cmake -S . -B build/ -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON";
|
2024-08-02 22:32:29 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
home.packages = [
|
2024-11-14 20:18:59 -05:00
|
|
|
(pkgs.writeShellApplication {
|
|
|
|
name = "testChanges";
|
|
|
|
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
|
|
|
|
nix flake update "$1"
|
|
|
|
nh os switch
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
})
|
2024-08-02 22:32:29 -04:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
# For accurate stack trace
|
|
|
|
_file = ./dev.nix;
|
|
|
|
}
|