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 libpng
29 libjpeg
30 libtiff
31 zlib
32 bzip2
33 mesa_glu
34 libXcursor
35 libXext
36 libXrandr
37 libXft
38 ]
39 ++ lib.optionals stdenv.hostPlatform.isDarwin [
40 cups
41 ];
42
43 doCheck = true;
44
45 enableParallelBuilding = true;
46
47 hardeningDisable = [ "format" ];
48
49 meta = with lib; {
50 description = "C++ based class library for building Graphical User Interfaces";
51 longDescription = ''
52 FOX stands for Free Objects for X.
53 It is a C++ based class library for building Graphical User Interfaces.
54 Initially, it was developed for LINUX, but the scope of this project has in the course of time become somewhat more ambitious.
55 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.
56 '';
57 homepage = "http://fox-toolkit.org";
58 license = licenses.lgpl3Plus;
59 maintainers = [ ];
60 platforms = platforms.all;
61 };
62}