Skip to content

Commit

Permalink
make functions no longer require to be ran in root
Browse files Browse the repository at this point in the history
  • Loading branch information
AwesomeQubic committed Jan 10, 2024
1 parent f897eae commit 41bbdb5
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,24 @@

shellHook = ''
export ROOT=$PWD
firstBuild() {
$configurePhase
$buildPhase
wrapQtApp Drawpile-build/bin/drawpile
cmake -S $ROOT -B $ROOT/Drawpile-build \
--preset ${preset} \
-DCMAKE_INSTALL_PREFIX=$out
cmake --build $ROOT/Drawpile-build
wrapQtApp $ROOT/Drawpile-build/bin/drawpile
}
incrementalBuild() {
$buildPhase
wrapQtApp Drawpile-build/bin/drawpile
cmake --build $ROOT/Drawpile-build
wrapQtApp $ROOT/Drawpile-build/bin/drawpile
}
incrementalRun() {
incrementalBuild
$ROOT/Drawpile-build/bin/drawpile
}
'';
Expand Down

0 comments on commit 41bbdb5

Please sign in to comment.