diff options
author | Anthony Cowley <acowley@gmail.com> | 2016-07-14 16:14:09 -0400 |
---|---|---|
committer | Anthony Cowley <acowley@gmail.com> | 2016-07-14 16:14:09 -0400 |
commit | fbf41c6c7fffbcda99b9e9b388570c508be43085 (patch) | |
tree | 1dea96e17d58ab836b2427b81d623b6b0901c0ab /pkgs/development/libraries/fltk/default.nix | |
parent | c1a600e8dfd5b114ec19a7b5699985f87691651b (diff) | |
download | nixpkgs-fbf41c6c7fffbcda99b9e9b388570c508be43085.tar nixpkgs-fbf41c6c7fffbcda99b9e9b388570c508be43085.tar.gz nixpkgs-fbf41c6c7fffbcda99b9e9b388570c508be43085.tar.bz2 nixpkgs-fbf41c6c7fffbcda99b9e9b388570c508be43085.tar.lz nixpkgs-fbf41c6c7fffbcda99b9e9b388570c508be43085.tar.xz nixpkgs-fbf41c6c7fffbcda99b9e9b388570c508be43085.tar.zst nixpkgs-fbf41c6c7fffbcda99b9e9b388570c508be43085.zip |
fltk: darwin compatibility
Diffstat (limited to 'pkgs/development/libraries/fltk/default.nix')
-rw-r--r-- | pkgs/development/libraries/fltk/default.nix | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/libraries/fltk/default.nix b/pkgs/development/libraries/fltk/default.nix index 772ea2030c2..99cb8aae323 100644 --- a/pkgs/development/libraries/fltk/default.nix +++ b/pkgs/development/libraries/fltk/default.nix @@ -1,6 +1,7 @@ { stdenv, composableDerivation, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi , freeglut, mesa, libjpeg, zlib, libXinerama, libXft, libpng , cfg ? {} +, darwin, libtiff, freetype }: let inherit (composableDerivation) edf; in @@ -21,7 +22,10 @@ composableDerivation.composableDerivation {} { ''; nativeBuildInputs = [ pkgconfig ]; - propagatedBuildInputs = [ xlibsWrapper inputproto libXi freeglut ]; + propagatedBuildInputs = [ inputproto ] + ++ (if stdenv.isDarwin + then (with darwin.apple_sdk.frameworks; [Cocoa AGL GLUT freetype libtiff]) + else [ xlibsWrapper libXi freeglut ]); enableParallelBuilding = true; @@ -55,9 +59,8 @@ composableDerivation.composableDerivation {} { meta = { description = "A C++ cross-platform lightweight GUI library"; homepage = http://www.fltk.org; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; license = stdenv.lib.licenses.gpl2; }; } - |