Merge pull request #123570 from stephank/fix-heimdall-darwin

heimdall: fix non-GUI build on darwin
This commit is contained in:
Robert Scott 2021-05-18 23:36:06 +01:00 committed by GitHub
commit 7f29e5fbcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ mkDerivation {
substituteInPlace libpit/CMakeLists.txt --replace "-std=gnu++11" ""
'';
installPhase = lib.optionalString stdenv.isDarwin ''
installPhase = lib.optionalString (stdenv.isDarwin && enableGUI) ''
mkdir -p $out/Applications
mv bin/heimdall-frontend.app $out/Applications/heimdall-frontend.app
wrapQtApp $out/Applications/heimdall-frontend.app/Contents/MacOS/heimdall-frontend