nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 libGLU,
6 libGL,
7 glew,
8 freetype,
9 fontconfig,
10 fribidi,
11 libX11,
12}:
13stdenv.mkDerivation (finalAttrs: {
14 pname = "quesoglc";
15 version = "0.7.2";
16
17 src = fetchurl {
18 url = "mirror://sourceforge/quesoglc/quesoglc-${finalAttrs.version}.tar.bz2";
19 hash = "sha256-VP7y7mhRct80TQb/RpmkQRQ7h6vtDVFFJK3E+JukyTE=";
20 };
21
22 buildInputs = [
23 libGLU
24 libGL
25 glew
26 freetype
27 fontconfig
28 fribidi
29 libX11
30 ];
31
32 # required for cross builds
33 configureFlags = [
34 "ac_cv_func_malloc_0_nonnull=yes"
35 "ac_cv_func_realloc_0_nonnull=yes"
36 "ac_cv_func_memcmp_working=yes"
37 ];
38
39 env.NIX_CFLAGS_COMPILE = "-Wno-error=incompatible-pointer-types";
40
41 # FIXME: Configure fails to use system glew.
42 meta = {
43 description = "Free implementation of the OpenGL Character Renderer";
44 longDescription = ''
45 QuesoGLC is a free (as in free speech) implementation of the OpenGL
46 Character Renderer (GLC). QuesoGLC is based on the FreeType library,
47 provides Unicode support and is designed to be easily ported to any
48 platform that supports both FreeType and the OpenGL API.
49 '';
50 homepage = "https://quesoglc.sourceforge.net/";
51 license = lib.licenses.lgpl21Plus;
52 platforms = lib.platforms.linux;
53 };
54})