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