mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-29 00:20:19 +02:00
chatterino2: fix install on macOS
On Darwin/macOS, chatterino2's install phase copies no files into the output. `make install` does not copy chatterino2.app. Copy the .app manually, fixing the installation. With this patch, chatterino2 almost works on macOS. Issue #42893 applies, so to make chatterino2 work, you must install qtbase in your environment. For example: $ nix-env -iA nixpkgs.qt5.qtbase $ open ~/.nix-profile/Applications/chatterino.app
This commit is contained in:
parent
edbf5d86e1
commit
cdd1c216ff
|
@ -1,4 +1,4 @@
|
|||
{ mkDerivation, lib, pkgconfig, fetchFromGitHub, qtbase, qtsvg, qtmultimedia, qmake, boost, openssl }:
|
||||
{ mkDerivation, stdenv, lib, pkgconfig, fetchFromGitHub, qtbase, qtsvg, qtmultimedia, qmake, boost, openssl }:
|
||||
|
||||
mkDerivation rec {
|
||||
pname = "chatterino2";
|
||||
|
@ -12,6 +12,10 @@ mkDerivation rec {
|
|||
};
|
||||
nativeBuildInputs = [ qmake pkgconfig ];
|
||||
buildInputs = [ qtbase qtsvg qtmultimedia boost openssl ];
|
||||
postInstall = lib.optionalString stdenv.isDarwin ''
|
||||
mkdir -p "$out/Applications"
|
||||
mv bin/chatterino.app "$out/Applications/"
|
||||
'';
|
||||
meta = with lib; {
|
||||
description = "A chat client for Twitch chat";
|
||||
longDescription = ''
|
||||
|
|
Loading…
Reference in a new issue