1{
2 lib,
3 stdenv,
4 fetchurl,
5 libpng,
6 libjpeg,
7 libtiff,
8 zlib,
9 bzip2,
10 mesa_glu,
11 libXcursor,
12 libXext,
13 libXrandr,
14 libXft,
15 cups,
16}:
17
18stdenv.mkDerivation rec {
19 pname = "fox";
20 version = "1.7.81";
21
22 src = fetchurl {
23 url = "http://fox-toolkit.org/ftp/${pname}-${version}.tar.gz";
24 sha256 = "sha256-bu+IEqNkv9OAf96dPYre3CP759pjalVIbYyc3QSQW2w=";
25 };
26
27 buildInputs =
28 [
29 libpng
30 libjpeg
31 libtiff
32 zlib
33 bzip2
34 mesa_glu
35 libXcursor
36 libXext
37 libXrandr
38 libXft
39 ]
40 ++ lib.optionals stdenv.hostPlatform.isDarwin [
41 cups
42 ];
43
44 doCheck = true;
45
46 enableParallelBuilding = true;
47
48 hardeningDisable = [ "format" ];
49
50 meta = with lib; {
51 description = "C++ based class library for building Graphical User Interfaces";
52 longDescription = ''
53 FOX stands for Free Objects for X.
54 It is a C++ based class library for building Graphical User Interfaces.
55 Initially, it was developed for LINUX, but the scope of this project has in the course of time become somewhat more ambitious.
56 Current aims are to make FOX completely platform independent, and thus programs written against the FOX library will be only a compile away from running on a variety of platforms.
57 '';
58 homepage = "http://fox-toolkit.org";
59 license = licenses.lgpl3Plus;
60 maintainers = [ ];
61 platforms = platforms.all;
62 };
63}