summary refs log tree commit diff
path: root/pkgs/tools/graphics/asymptote
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2017-02-06 19:05:55 +0000
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-02-06 19:05:55 +0000
commit82c1d98e94d8d3c7869f09c3e51e68b7c2661bc3 (patch)
tree48f51d8e752f20d129325879b8670856573c7556 /pkgs/tools/graphics/asymptote
parent442e0ab1f650e9a7dc61f0369ecc86f8bffbe79e (diff)
downloadnixpkgs-82c1d98e94d8d3c7869f09c3e51e68b7c2661bc3.tar
nixpkgs-82c1d98e94d8d3c7869f09c3e51e68b7c2661bc3.tar.gz
nixpkgs-82c1d98e94d8d3c7869f09c3e51e68b7c2661bc3.tar.bz2
nixpkgs-82c1d98e94d8d3c7869f09c3e51e68b7c2661bc3.tar.lz
nixpkgs-82c1d98e94d8d3c7869f09c3e51e68b7c2661bc3.tar.xz
nixpkgs-82c1d98e94d8d3c7869f09c3e51e68b7c2661bc3.tar.zst
nixpkgs-82c1d98e94d8d3c7869f09c3e51e68b7c2661bc3.zip
asymptote: fix build on darwin
Diffstat (limited to 'pkgs/tools/graphics/asymptote')
-rw-r--r--pkgs/tools/graphics/asymptote/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix
index b090ceca02b..483c73d149b 100644
--- a/pkgs/tools/graphics/asymptote/default.nix
+++ b/pkgs/tools/graphics/asymptote/default.nix
@@ -2,6 +2,7 @@
   , freeglut, ghostscriptX, imagemagick, fftw 
   , boehmgc, mesa_glu, mesa_noglu, ncurses, readline, gsl, libsigsegv
   , python, zlib, perl, texLive, texinfo, xz
+, darwin
 }:
 
 let
@@ -20,6 +21,8 @@ let
    python zlib perl texLive texinfo xz ]
    ++ stdenv.lib.optionals stdenv.isLinux
      [ freeglut mesa_glu mesa_noglu mesa_noglu.osmesa ]
+   ++ stdenv.lib.optionals stdenv.isDarwin
+     (with darwin.apple_sdk.frameworks; [ OpenGL GLUT Cocoa ])
    ;
 in
 stdenv.mkDerivation {