@@ -4,8 +4,6 @@
44 , python, zlib, perl, texLive, texinfo, xz
55}:
66
7−assert stdenv.isLinux;
8−
97let
108 s = # Generated upstream information
119 rec {
@@ -17,10 +15,12 @@ let
1715 sha256="1dxwvq0xighqckkjkjva8s0igxfgy1j25z81pbwvlz6jzsrxpip9";
1816 };
1917 buildInputs = [
20− freeglut ghostscriptX imagemagick fftw
21− boehmgc mesa_glu mesa_noglu mesa_noglu.osmesa ncurses readline gsl libsigsegv
22− python zlib perl texLive texinfo xz
23− ];
18+ ghostscriptX imagemagick fftw
19+ boehmgc ncurses readline gsl libsigsegv
20+ python zlib perl texLive texinfo xz ]
21+ ++ stdenv.lib.optionals stdenv.isLinux
22+ [ freeglut mesa_glu mesa_noglu mesa_noglu.osmesa ]
23+ ;
2424in
2525stdenv.mkDerivation {
2626 inherit (s) name version;
@@ -51,11 +51,11 @@ stdenv.mkDerivation {
5151
5252 enableParallelBuilding = true;
5353
54− meta = {
54+ meta = with stdenv.lib; {
5555 inherit (s) version;
5656 description = "A tool for programming graphics intended to replace Metapost";
57− license = stdenv.lib.licenses.gpl3Plus;
58− maintainers = [stdenv.lib.maintainers.raskin stdenv.lib.maintainers.peti];
59− platforms = stdenv.lib.platforms.linux;
57+ license = licenses.gpl3Plus;
58+ maintainers = [ maintainers.raskin maintainers.peti ];
59+ platforms = platforms.linux ++ platforms.darwin;
6060 };
6161}