29 lines
622 B
Nix
29 lines
622 B
Nix
{ stdenv, callPackage,
|
|
darwin, qt5, status-go }:
|
|
|
|
with stdenv;
|
|
with darwin.apple_sdk.frameworks;
|
|
|
|
assert isDarwin;
|
|
|
|
let
|
|
baseImage = callPackage ./base-image { };
|
|
|
|
in
|
|
{
|
|
buildInputs = [
|
|
baseImage status-go.buildInputs
|
|
qt5.full
|
|
AppKit Cocoa darwin.cf-private Foundation OpenGL
|
|
];
|
|
|
|
shellHook =
|
|
baseImage.shellHook +
|
|
status-go.shellHook + ''
|
|
export NIX_TARGET_LDFLAGS="-F${CoreFoundation}/Library/Frameworks -framework CoreFoundation $NIX_TARGET_LDFLAGS"
|
|
export QT_PATH="${qt5.full}"
|
|
export QT_BASEBIN_PATH="${qt5.qtbase.bin}"
|
|
export PATH="${qt5.full}/bin:$PATH"
|
|
'';
|
|
}
|