2019-05-17 10:55:24 +02:00
|
|
|
{ stdenv, callPackage,
|
|
|
|
darwin, qt5, status-go }:
|
2019-03-21 17:56:22 +01:00
|
|
|
|
|
|
|
with stdenv;
|
2019-05-07 08:43:53 +02:00
|
|
|
with darwin.apple_sdk.frameworks;
|
|
|
|
|
|
|
|
assert isDarwin;
|
2019-03-21 17:56:22 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
baseImage = callPackage ./base-image { };
|
|
|
|
|
|
|
|
in
|
|
|
|
{
|
2019-05-08 17:07:06 +02:00
|
|
|
buildInputs = [
|
2019-05-13 11:22:29 +02:00
|
|
|
baseImage status-go.buildInputs
|
|
|
|
qt5.full
|
2019-05-08 17:07:06 +02:00
|
|
|
AppKit Cocoa darwin.cf-private Foundation OpenGL
|
|
|
|
];
|
2019-04-04 00:05:59 +02:00
|
|
|
|
2019-05-08 17:07:06 +02:00
|
|
|
shellHook =
|
|
|
|
baseImage.shellHook +
|
|
|
|
status-go.shellHook + ''
|
|
|
|
export NIX_TARGET_LDFLAGS="-F${CoreFoundation}/Library/Frameworks -framework CoreFoundation $NIX_TARGET_LDFLAGS"
|
2019-05-13 11:22:29 +02:00
|
|
|
export QT_PATH="${qt5.full}"
|
|
|
|
export QT_BASEBIN_PATH="${qt5.qtbase.bin}"
|
|
|
|
export PATH="${qt5.full}/bin:$PATH"
|
2019-05-08 17:07:06 +02:00
|
|
|
'';
|
2019-03-21 17:56:22 +01:00
|
|
|
}
|