1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/libcaca/default.nix

31 lines
835 B
Nix
Raw Normal View History

2016-10-10 18:05:34 +01:00
{ 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" ];
2015-10-20 23:10:42 +01:00
2016-10-10 18:05:34 +01:00
propagatedBuildInputs = [ ncurses zlib imlib2 pkgconfig libX11 ]
++ stdenv.lib.optional stdenv.isDarwin libXext;
2015-10-20 23:10:42 +01:00
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;
};
}