status-mobile/nix/desktop/macos/default.nix

25 lines
469 B
Nix
Raw Normal View History

{ stdenv, pkgs, status-go }:
with pkgs;
with stdenv;
with darwin.apple_sdk.frameworks;
assert isDarwin;
let
baseImage = callPackage ./base-image { };
in
{
buildInputs = [
baseImage status-go.packages
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"
'';
}