mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
tensor: fix darwin build
This commit is contained in:
parent
ed95b50a7b
commit
7fe17847a2
@ -1,4 +1,5 @@
|
||||
{ mkDerivation, lib, fetchgit, qtbase, qtquickcontrols, qmake, makeDesktopItem }:
|
||||
{ mkDerivation, lib, stdenv, fetchgit, qtbase, qtquickcontrols, qmake
|
||||
, makeDesktopItem }:
|
||||
|
||||
# we now have libqmatrixclient so a future version of tensor that supports it
|
||||
# should use that
|
||||
@ -30,7 +31,15 @@ mkDerivation rec {
|
||||
mimeType = "application/x-chat";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
installPhase = if stdenv.isDarwin then ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/Applications
|
||||
cp -r tensor.app $out/Applications/tensor.app
|
||||
wrapQtApp $out/Applications/tensor.app/Contents/MacOS/tensor
|
||||
|
||||
runHook postInstall
|
||||
'' else ''
|
||||
runHook preInstall
|
||||
|
||||
install -Dm755 tensor $out/bin/tensor
|
||||
|
Loading…
Reference in New Issue
Block a user