calaos_installer: fix darwin install (#46629)

On darwin this builds an application instead of a binary.

/cc ZHF #45961
This commit is contained in:
Daiderd Jordan 2018-09-13 23:40:30 +02:00 committed by xeji
parent d782c4eba5
commit 68956555c1

View File

@ -16,7 +16,10 @@ stdenv.mkDerivation rec {
qmakeFlags = [ "REVISION=${version}" ];
installPhase = ''
installPhase = if stdenv.isDarwin then ''
mkdir -p $out/Applications
cp -a calaos_installer.app $out/Applications
'' else ''
mkdir -p $out/bin
cp -a calaos_installer $out/bin
'';