Pedro Pombeiro a09ff50583
nix: Move status-go package further down where it is actually used
Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
2019-05-10 13:31:44 +02:00

25 lines
469 B
Nix

{ 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"
'';
}