lol

Merge pull request #45006 from jbaum98/tachyon-darwin

tachyon: Add darwin support

authored by

adisbladis and committed by
GitHub
3878342e a38a2ba7

+35 -3
+31
pkgs/development/libraries/tachyon/darwin.patch
··· 1 + diff --git a/unix/Make-arch b/unix/Make-arch 2 + index 08afb85..822c4fc 100644 3 + --- a/unix/Make-arch 4 + +++ b/unix/Make-arch 5 + @@ -924,7 +924,7 @@ macosx-thr: 6 + $(MAKE) all \ 7 + "ARCH = macosx-thr" \ 8 + "CC = cc" \ 9 + - "CFLAGS = -Os -ffast-math -DBsd -DTHR -F/System/Library/Frameworks $(MISCFLAGS)" \ 10 + + "CFLAGS = -Os -ffast-math -DBsd -DTHR $(MISCFLAGS)" \ 11 + "AR = ar" \ 12 + "ARFLAGS = r" \ 13 + "STRIP = strip" \ 14 + @@ -946,7 +946,7 @@ macosx-x86-thr: 15 + $(MAKE) all \ 16 + "ARCH = macosx-x86-thr" \ 17 + "CC = cc" \ 18 + - "CFLAGS = -O2 -ffast-math -DBsd -DTHR -F/System/Library/Frameworks $(MISCFLAGS)" \ 19 + + "CFLAGS = -O2 -ffast-math -DBsd -DTHR $(MISCFLAGS)" \ 20 + "AR = ar" \ 21 + "ARFLAGS = r" \ 22 + "STRIP = strip" \ 23 + @@ -957,7 +957,7 @@ macosx-x86-thr-ogl: 24 + $(MAKE) all \ 25 + "ARCH = macosx-x86-thr-ogl" \ 26 + "CC = cc" \ 27 + - "CFLAGS = -O2 -ffast-math -DBsd -DTHR -I/usr/X11R6/include -F/System/Library/Frameworks $(MISCFLAGS) -DUSEOPENGL" \ 28 + + "CFLAGS = -O2 -ffast-math -DBsd -DTHR -I/usr/X11R6/include $(MISCFLAGS) -DUSEOPENGL" \ 29 + "AR = ar" \ 30 + "ARFLAGS = r" \ 31 + "STRIP = strip" \
+4 -3
pkgs/development/libraries/tachyon/default.nix
··· 50 50 ./no-absolute-paths.patch 51 51 # Include new targets (like arm) 52 52 ./make-archs.patch 53 - ]; 53 + ] ++ 54 + # Ensure looks for nix-provided Carbon, not system frameworks 55 + stdenv.lib.optional stdenv.isDarwin ./darwin.patch; 54 56 55 57 installPhase = '' 56 58 cd ../compile/${arch} ··· 66 68 description = ''A Parallel / Multiprocessor Ray Tracing System''; 67 69 license = stdenv.lib.licenses.bsd3; 68 70 maintainers = [stdenv.lib.maintainers.raskin]; 69 - # darwin fails due to missing Carbon.h, even though Carbon is a build input 70 - platforms = with stdenv.lib.platforms; linux ++ cygwin; 71 + platforms = with stdenv.lib.platforms; linux ++ cygwin ++ darwin; 71 72 homepage = http://jedi.ks.uiuc.edu/~johns/tachyon/; 72 73 }; 73 74 }