tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
fltk: darwin compatibility
Anthony Cowley
9 years ago
fbf41c6c
c1a600e8
+6
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
fltk
default.nix
+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
4
+
, darwin, libtiff, freetype
4
5
}:
5
6
6
7
let inherit (composableDerivation) edf; in
···
21
22
'';
22
23
23
24
nativeBuildInputs = [ pkgconfig ];
24
24
-
propagatedBuildInputs = [ xlibsWrapper inputproto libXi freeglut ];
25
25
+
propagatedBuildInputs = [ inputproto ]
26
26
+
++ (if stdenv.isDarwin
27
27
+
then (with darwin.apple_sdk.frameworks; [Cocoa AGL GLUT freetype libtiff])
28
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
58
-
platforms = stdenv.lib.platforms.linux;
62
62
+
platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
59
63
license = stdenv.lib.licenses.gpl2;
60
64
};
61
65
62
66
}
63
63
-