lol

fltk: darwin compatibility

+6 -3
+6 -3
pkgs/development/libraries/fltk/default.nix
··· 1 1 { stdenv, composableDerivation, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi 2 2 , freeglut, mesa, libjpeg, zlib, libXinerama, libXft, libpng 3 3 , cfg ? {} 4 + , darwin, libtiff, freetype 4 5 }: 5 6 6 7 let inherit (composableDerivation) edf; in ··· 21 22 ''; 22 23 23 24 nativeBuildInputs = [ pkgconfig ]; 24 - propagatedBuildInputs = [ xlibsWrapper inputproto libXi freeglut ]; 25 + propagatedBuildInputs = [ inputproto ] 26 + ++ (if stdenv.isDarwin 27 + then (with darwin.apple_sdk.frameworks; [Cocoa AGL GLUT freetype libtiff]) 28 + else [ xlibsWrapper libXi freeglut ]); 25 29 26 30 enableParallelBuilding = true; 27 31 ··· 55 59 meta = { 56 60 description = "A C++ cross-platform lightweight GUI library"; 57 61 homepage = http://www.fltk.org; 58 - platforms = stdenv.lib.platforms.linux; 62 + platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; 59 63 license = stdenv.lib.licenses.gpl2; 60 64 }; 61 65 62 66 } 63 -