fix(hypr): allow dev script to work on normal repos
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-11-10 15:03:09 -05:00
parent 33b8a9e097
commit 400a9f831a

View file

@ -8,12 +8,11 @@
home.packages = [ home.packages = [
(pkgs.writeShellScriptBin "testChanges" '' (pkgs.writeShellScriptBin "testChanges" ''
rm -r /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" nix flake update "$1"
nh os switch nh os switch
( cd "/home/matt/git/$1/$2" || return
cd "/home/matt/git/$1/$2" 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
)
'') '')
]; ];
}; };