11 x11Support ? !stdenv.hostPlatform.isDarwin,
14 stdenv.mkDerivation rec {
16 version = "0.99.beta20";
18 src = fetchFromGitHub {
22 hash = "sha256-N0Lfi0d4kjxirEbIjdeearYWvStkKMyV6lgeyNKXcVw=";
34 (imlib2.override { inherit x11Support; })
36 ++ lib.optionals x11Support [
50 (if x11Support then "--enable-x11" else "--disable-x11")
52 ++ lib.optionals stdenv.hostPlatform.isDarwin [
53 # Suppresses a build failure building Cocoa support due to accessing private ivar `_running`,
54 # which no longer available.
55 (lib.enableFeature false "cocoa")
58 env.NIX_CFLAGS_COMPILE = lib.optionalString (!x11Support) "-DX_DISPLAY_MISSING";
62 mv $bin/bin/caca-config $dev/bin/caca-config
66 homepage = "http://caca.zoy.org/wiki/libcaca";
67 description = "Graphics library that outputs text instead of pixels";
69 libcaca is a graphics library that outputs text instead of pixels, so that
70 it can work on older video cards or text terminals. It is not unlike the
71 famous ​AAlib library, with the following improvements:
74 - 2048 available colours (some devices can only handle 16)
75 - dithering of colour images
76 - advanced text canvas operations (blitting, rotations)
78 Libcaca works in a text terminal (and should thus work on all Unix systems
79 including Mac OS X) using the S-Lang or ncurses libraries. It also works
80 natively on DOS and Windows.
82 Libcaca was written by Sam Hocevar and Jean-Yves Lamoureux.
84 license = licenses.wtfpl;
85 maintainers = with maintainers; [ AndersonTorres ];
86 platforms = platforms.unix;