mirror of
https://github.com/urbit/shrub.git
synced 2024-12-25 13:04:17 +03:00
edd57d380d
- Fixes the IPC bug - Fixes the terminfo bug - Moves the OSX SDK out of our nixcrpkgs fork. - Vendor nixcrpkgs instead of having it be a submodule.
44 lines
1.0 KiB
Nix
44 lines
1.0 KiB
Nix
{ crossenv, debug ? false }:
|
|
|
|
if crossenv.os != "windows" then "windows only" else
|
|
|
|
crossenv.make_derivation rec {
|
|
name = "angle-${version}";
|
|
|
|
version = "2017-03-09";
|
|
|
|
src = crossenv.nixpkgs.fetchgit {
|
|
url = "https://chromium.googlesource.com/angle/angle";
|
|
rev = "fe9306a8e5bb6a8d52368e8e7b8e92f3bc7e77d4";
|
|
sha256 = "0m2pbkl9x9kybcxzhai0s3bk9k0r8nb531gzlxcvb3gb2za388bn";
|
|
};
|
|
|
|
patches = [ ./megapatch.patch ];
|
|
|
|
builder = ./builder.sh;
|
|
|
|
native_inputs = [
|
|
crossenv.nixpkgs.pythonPackages.gyp
|
|
];
|
|
|
|
GYP_GENERATORS = "ninja";
|
|
|
|
gyp_flags =
|
|
"-D OS=win " +
|
|
"-D TARGET=win32 " +
|
|
"-D use_ozone=0 " +
|
|
"-D angle_enable_vulkan=0 " + # Vulkan support is in progress
|
|
"-D angle_gl_library_type=static_library " +
|
|
"-I ../src/gyp/common.gypi " +
|
|
"--depth .";
|
|
|
|
CC_target = "${crossenv.host}-gcc";
|
|
CXX_target = "${crossenv.host}-g++";
|
|
AR = "${crossenv.host}-ar";
|
|
RANLIB = "${crossenv.host}-ranlib";
|
|
|
|
CXXFLAGS = "-msse2 -Wno-conversion-null";
|
|
|
|
inherit debug;
|
|
}
|