diff options
author | Chris Martin <ch.martin@gmail.com> | 2018-11-19 23:06:27 -0500 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2018-11-21 16:06:22 +0100 |
commit | 97cd07e32240b5b6f9fa76e9a86a7f2061a957b7 (patch) | |
tree | f0de54e9d0af82d8216c153cdb120d22f048e21b /pkgs/development/libraries/fltk | |
parent | e91114177038a30d4123cd1978e5c7a6a788e9b3 (diff) |
fltk: add version 1.4.x-r13121
Diffstat (limited to 'pkgs/development/libraries/fltk')
-rw-r--r-- | pkgs/development/libraries/fltk/1.4.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/development/libraries/fltk/1.4.nix b/pkgs/development/libraries/fltk/1.4.nix new file mode 100644 index 0000000000000..5d6397c6a1b63 --- /dev/null +++ b/pkgs/development/libraries/fltk/1.4.nix @@ -0,0 +1,52 @@ +{ stdenv, fetchurl, pkgconfig, xlibsWrapper, inputproto, libXi +, freeglut, libGLU_combined, libjpeg, zlib, libXft, libpng +, libtiff, freetype, cf-private, Cocoa, AGL, GLUT +}: + +let + version = "1.4.x-r13121"; +in stdenv.mkDerivation { + name = "fltk-${version}"; + + src = fetchurl { + url = "http://fltk.org/pub/fltk/snapshots/fltk-${version}.tar.gz"; + sha256 = "1v8wxvxcbk99i82x2v5fpqg5vj8n7g8a38g30ry7nzcjn5sf3r63"; + }; + + preConfigure = "make clean"; + + patches = stdenv.lib.optionals stdenv.isDarwin [ ./nsosv.patch ]; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ + libGLU_combined + libjpeg + zlib + libpng + libXft + ]; + + configureFlags = [ + "--enable-gl" + "--enable-largefile" + "--enable-shared" + "--enable-threads" + "--enable-xft" + ]; + + propagatedBuildInputs = [ inputproto ] + ++ (if stdenv.isDarwin + then [ Cocoa AGL GLUT freetype libtiff cf-private /* Needed for NSDefaultRunLoopMode */ ] + else [ xlibsWrapper libXi freeglut ]); + + enableParallelBuilding = true; + + meta = { + description = "A C++ cross-platform lightweight GUI library"; + homepage = http://www.fltk.org; + platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; + license = stdenv.lib.licenses.gpl2; + }; + +} |