2016-10-10 20:05:34 +03:00
|
|
|
{ stdenv, fetchurl, ncurses, zlib, imlib2, pkgconfig, libX11, libXext }:
|
2005-08-24 19:02:30 +04:00
|
|
|
|
2008-06-10 22:15:10 +04:00
|
|
|
stdenv.mkDerivation rec {
|
2014-11-04 22:07:05 +03:00
|
|
|
name = "libcaca-0.99.beta19";
|
2014-11-06 03:44:33 +03:00
|
|
|
|
2005-08-24 19:02:30 +04:00
|
|
|
src = fetchurl {
|
2014-12-27 22:58:34 +03:00
|
|
|
urls = [
|
|
|
|
"http://fossies.org/linux/privat/${name}.tar.gz"
|
|
|
|
"http://caca.zoy.org/files/libcaca/${name}.tar.gz"
|
|
|
|
];
|
2014-11-04 22:07:05 +03:00
|
|
|
sha256 = "1x3j6yfyxl52adgnabycr0n38j9hx2j74la0hz0n8cnh9ry4d2qj";
|
2005-08-24 19:02:30 +04:00
|
|
|
};
|
2014-11-06 03:44:33 +03:00
|
|
|
|
2016-08-29 03:30:01 +03:00
|
|
|
outputs = [ "bin" "dev" "out" "man" ];
|
2015-10-21 01:10:42 +03:00
|
|
|
|
2016-10-10 20:05:34 +03:00
|
|
|
propagatedBuildInputs = [ ncurses zlib imlib2 pkgconfig libX11 ]
|
|
|
|
++ stdenv.lib.optional stdenv.isDarwin libXext;
|
2008-06-10 22:15:10 +04:00
|
|
|
|
2015-10-21 01:10:42 +03:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $dev/bin
|
|
|
|
mv $bin/bin/caca-config $dev/bin/caca-config
|
|
|
|
'';
|
|
|
|
|
2009-02-12 22:25:10 +03:00
|
|
|
meta = {
|
|
|
|
homepage = http://libcaca.zoy.org/;
|
|
|
|
description = "A graphics library that outputs text instead of pixels";
|
2014-11-06 03:44:33 +03:00
|
|
|
license = stdenv.lib.licenses.wtfpl;
|
2016-08-02 20:50:55 +03:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2009-02-12 22:25:10 +03:00
|
|
|
};
|
2005-08-24 19:02:30 +04:00
|
|
|
}
|