10 , x11Support ? !stdenv.isDarwin
13 stdenv.mkDerivation rec {
15 version = "0.99.beta20";
17 src = fetchFromGitHub {
21 hash = "sha256-N0Lfi0d4kjxirEbIjdeearYWvStkKMyV6lgeyNKXcVw=";
32 (imlib2.override { inherit x11Support; })
33 ] ++ lib.optionals x11Support [
38 outputs = [ "bin" "dev" "out" "man" ];
41 (if x11Support then "--enable-x11" else "--disable-x11")
44 env.NIX_CFLAGS_COMPILE = lib.optionalString (!x11Support) "-DX_DISPLAY_MISSING";
48 mv $bin/bin/caca-config $dev/bin/caca-config
52 homepage = "http://caca.zoy.org/wiki/libcaca";
53 description = "A graphics library that outputs text instead of pixels";
55 libcaca is a graphics library that outputs text instead of pixels, so that
56 it can work on older video cards or text terminals. It is not unlike the
57 famous ​AAlib library, with the following improvements:
60 - 2048 available colours (some devices can only handle 16)
61 - dithering of colour images
62 - advanced text canvas operations (blitting, rotations)
64 Libcaca works in a text terminal (and should thus work on all Unix systems
65 including Mac OS X) using the S-Lang or ncurses libraries. It also works
66 natively on DOS and Windows.
68 Libcaca was written by Sam Hocevar and Jean-Yves Lamoureux.
70 license = licenses.wtfpl;
71 maintainers = with maintainers; [ AndersonTorres ];
72 platforms = platforms.unix;