Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 stdenv,
4 fetchurl,
5 libpng,
6 libjpeg,
7 libtiff,
8 zlib,
9 bzip2,
10 libXcursor,
11 libXrandr,
12 libGLU,
13 libGL,
14 libXext,
15 libXft,
16 libXfixes,
17 mesa,
18 xinput,
19}:
20
21stdenv.mkDerivation rec {
22 pname = "fox";
23 version = "1.6.57";
24
25 src = fetchurl {
26 url = "ftp://ftp.fox-toolkit.org/pub/${pname}-${version}.tar.gz";
27 sha256 = "08w98m6wjadraw1pi13igzagly4b2nfa57kdqdnkjfhgkvg1bvv5";
28 };
29
30 buildInputs = [
31 libpng
32 libjpeg
33 libtiff
34 zlib
35 bzip2
36 libXcursor
37 libXrandr
38 libXext
39 libXft
40 libGLU
41 libGL
42 libXfixes
43 xinput
44 ];
45
46 doCheck = true;
47
48 enableParallelBuilding = true;
49
50 hardeningDisable = [ "format" ];
51
52 meta = {
53 broken = stdenv.hostPlatform.isDarwin;
54 branch = "1.6";
55 description = "C++ based class library for building Graphical User Interfaces";
56 longDescription = ''
57 FOX stands for Free Objects for X.
58 It is a C++ based class library for building Graphical User Interfaces.
59 Initially, it was developed for LINUX, but the scope of this project has in the course of time become somewhat more ambitious.
60 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.
61 '';
62 homepage = "http://fox-toolkit.org";
63 license = lib.licenses.lgpl3;
64 maintainers = [ ];
65 inherit (mesa.meta) platforms;
66 };
67}