litecoin: add missing framework and mark broken on darwin

In file included from qt/bitcoin.cpp:9:
    ./qt/bitcoingui.h:14:10: fatal error: 'QLabel' file not found
    #include <QLabel>
             ^~~~~~~~
    1 error generated.

/cc ZHF #45961
This commit is contained in:
Daiderd Jordan 2018-09-12 21:50:33 +02:00
parent e7ecf593e2
commit 0dff3d5c73
No known key found for this signature in database
GPG Key ID: D02435D05B810C96
2 changed files with 11 additions and 4 deletions

View File

@ -62,8 +62,10 @@ rec {
buildGoPackage = buildGo110Package; buildGoPackage = buildGo110Package;
}; };
litecoin = callPackage ./litecoin.nix { withGui = true; }; litecoin = callPackage ./litecoin.nix {
litecoind = callPackage ./litecoin.nix { withGui = false; }; inherit (darwin.apple_sdk.frameworks) AppKit;
};
litecoind = litecoin.override { withGui = false; };
masari = callPackage ./masari.nix { }; masari = callPackage ./masari.nix { };

View File

@ -2,9 +2,12 @@
, pkgconfig, autoreconfHook , pkgconfig, autoreconfHook
, openssl, db48, boost, zlib, miniupnpc , openssl, db48, boost, zlib, miniupnpc
, glib, protobuf, utillinux, qt4, qrencode , glib, protobuf, utillinux, qt4, qrencode
, withGui, libevent }: , AppKit
, withGui ? true, libevent
}:
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version; name = "litecoin" + (toString (optional (!withGui) "d")) + "-" + version;
@ -20,6 +23,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig autoreconfHook ]; nativeBuildInputs = [ pkgconfig autoreconfHook ];
buildInputs = [ openssl db48 boost zlib buildInputs = [ openssl db48 boost zlib
miniupnpc glib protobuf utillinux libevent ] miniupnpc glib protobuf utillinux libevent ]
++ optionals stdenv.isDarwin [ AppKit ]
++ optionals withGui [ qt4 qrencode ]; ++ optionals withGui [ qt4 qrencode ];
configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ] configureFlags = [ "--with-boost-libdir=${boost.out}/lib" ]
@ -39,6 +43,7 @@ stdenv.mkDerivation rec {
homepage = https://litecoin.org/; homepage = https://litecoin.org/;
platforms = platforms.unix; platforms = platforms.unix;
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ offline AndersonTorres ]; broken = stdenv.isDarwin;
maintainers = with maintainers; [ offline AndersonTorres ];
}; };
} }