about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libcaca/default.nix
blob: 04e1af2326b67a180811b6f5f32d1dae2119bebe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, ncurses, zlib, imlib2, pkgconfig, libX11, libXext }:

stdenv.mkDerivation rec {
  name = "libcaca-0.99.beta19";

  src = fetchurl {
    urls = [
      "http://fossies.org/linux/privat/${name}.tar.gz"
      "http://caca.zoy.org/files/libcaca/${name}.tar.gz"
    ];
    sha256 = "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj";
  };

  outputs = [ "bin" "dev" "out" "man" ];

  propagatedBuildInputs = [ ncurses zlib imlib2 pkgconfig libX11 ]
   ++ stdenv.lib.optional stdenv.isDarwin libXext;

  postInstall = ''
    mkdir -p $dev/bin
    mv $bin/bin/caca-config $dev/bin/caca-config
  '';

  meta = {
    homepage = http://libcaca.zoy.org/;
    description = "A graphics library that outputs text instead of pixels";
    license = stdenv.lib.licenses.wtfpl;
    platforms = stdenv.lib.platforms.unix;
  };
}