summary refs log tree commit diff
path: root/pkgs/tools/graphics/asymptote
diff options
context:
space:
mode:
authorVincent Laporte <Vincent.Laporte@gmail.com>2016-10-02 22:55:56 +0200
committerVincent Laporte <Vincent.Laporte@gmail.com>2016-10-03 19:09:56 +0200
commit3cb65da139d02fd7b08cd0d4c53fd1770b639774 (patch)
treebf0fc38d72aeab1eb88c271e8488f08e14f3c82a /pkgs/tools/graphics/asymptote
parent008344b29a9dceb35b3ef78fe759875aba6cab9b (diff)
downloadnixpkgs-3cb65da139d02fd7b08cd0d4c53fd1770b639774.tar
nixpkgs-3cb65da139d02fd7b08cd0d4c53fd1770b639774.tar.gz
nixpkgs-3cb65da139d02fd7b08cd0d4c53fd1770b639774.tar.bz2
nixpkgs-3cb65da139d02fd7b08cd0d4c53fd1770b639774.tar.lz
nixpkgs-3cb65da139d02fd7b08cd0d4c53fd1770b639774.tar.xz
nixpkgs-3cb65da139d02fd7b08cd0d4c53fd1770b639774.tar.zst
nixpkgs-3cb65da139d02fd7b08cd0d4c53fd1770b639774.zip
asymptote: fix build on Darwin
No GLUT and no OSMesa
Diffstat (limited to 'pkgs/tools/graphics/asymptote')
-rw-r--r--pkgs/tools/graphics/asymptote/default.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix
index 7d191ccaba5..2d73a268038 100644
--- a/pkgs/tools/graphics/asymptote/default.nix
+++ b/pkgs/tools/graphics/asymptote/default.nix
@@ -4,8 +4,6 @@
   , python, zlib, perl, texLive, texinfo, xz
 }:
 
-assert stdenv.isLinux;
-
 let
   s = # Generated upstream information
   rec {
@@ -17,10 +15,12 @@ let
     sha256="1dxwvq0xighqckkjkjva8s0igxfgy1j25z81pbwvlz6jzsrxpip9";
   };
   buildInputs = [
-   freeglut ghostscriptX imagemagick fftw 
-   boehmgc mesa_glu mesa_noglu mesa_noglu.osmesa ncurses readline gsl libsigsegv
-   python zlib perl texLive texinfo xz
-  ];
+   ghostscriptX imagemagick fftw
+   boehmgc ncurses readline gsl libsigsegv
+   python zlib perl texLive texinfo xz ]
+   ++ stdenv.lib.optionals stdenv.isLinux
+     [ freeglut mesa_glu mesa_noglu mesa_noglu.osmesa ]
+   ;
 in
 stdenv.mkDerivation {
   inherit (s) name version;
@@ -51,11 +51,11 @@ stdenv.mkDerivation {
 
   enableParallelBuilding = true;
 
-  meta = {
+  meta = with stdenv.lib; {
     inherit (s) version;
     description =  "A tool for programming graphics intended to replace Metapost";
-    license = stdenv.lib.licenses.gpl3Plus;
-    maintainers = [stdenv.lib.maintainers.raskin stdenv.lib.maintainers.peti];
-    platforms = stdenv.lib.platforms.linux;
+    license = licenses.gpl3Plus;
+    maintainers = [ maintainers.raskin maintainers.peti ];
+    platforms = platforms.linux ++ platforms.darwin;
   };
 }