pokefinder: fix build on darwin

This commit is contained in:
Weijia Wang 2023-01-24 04:53:00 +01:00
parent 1a711794d5
commit c49d2e8a59

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 ];