qtchan: fix on macos

This commit is contained in:
Matthew Bauer 2018-05-16 00:48:15 -05:00
parent c605d171bb
commit 4592ed6e43
2 changed files with 14 additions and 5 deletions

View file

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, qt5 }:
{ stdenv, fetchFromGitHub, qt, makeWrapper }:
stdenv.mkDerivation rec {
name = "qtchan-${version}";
@ -12,19 +12,26 @@ stdenv.mkDerivation rec {
};
enableParallelBuilding = true;
nativeBuildInputs = [ qt5.qmake ];
buildInputs = [ qt5.qtbase ];
nativeBuildInputs = [ qt.qmake makeWrapper ];
buildInputs = [ qt.qtbase ];
qmakeFlags = [ "CONFIG-=app_bundle" ];
installPhase = ''
mkdir -p $out/bin
cp qtchan $out/bin
'';
preFixup = ''
wrapProgram $out/bin/qtchan \
--suffix QT_PLUGIN_PATH : ${qt.qtbase.bin}/${qt.qtbase.qtPluginPrefix}
'';
meta = with stdenv.lib; {
description = "4chan browser in qt5";
homepage = "https://github.com/siavash119/qtchan";
license = licenses.mit;
maintainers = with maintainers; [ chiiruno ];
platforms = platforms.linux;
platforms = platforms.unix;
};
}

View file

@ -17554,7 +17554,9 @@ with pkgs;
qtbitcointrader = callPackage ../applications/misc/qtbitcointrader { };
qtchan = callPackage ../applications/networking/browsers/qtchan { };
qtchan = callPackage ../applications/networking/browsers/qtchan {
qt = qt5;
};
qtox = libsForQt5.callPackage ../applications/networking/instant-messengers/qtox { };