Merge pull request #212361 from wegank/pokefinder-darwin

pokefinder: fix build on darwin
This commit is contained in:
Weijia Wang 2023-01-24 05:23:31 +01:00 committed by GitHub
commit 0ec12a35d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,8 +26,11 @@ stdenv.mkDerivation rec {
patchShebangs Source/Core/Resources/
'';
installPhase = ''
installPhase = lib.optionalString (!stdenv.isDarwin) ''
install -D Source/Forms/PokeFinder $out/bin/PokeFinder
'' + lib.optionalString stdenv.isDarwin ''
mkdir -p $out/Applications
cp -R Source/Forms/PokeFinder.app $out/Applications
'';
nativeBuildInputs = [ cmake wrapQtAppsHook ];