1 {lib, stdenv, fetchurl, ncurses, automake}:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/aa-project/aalib-${version}.tar.gz";
9 sha256 = "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv";
12 outputs = [ "bin" "dev" "out" "man" "info" ];
13 setOutputFlags = false; # Doesn't support all the flags
15 patches = lib.optionals stdenv.isDarwin [ ./darwin.patch ];
17 # The fuloong2f is not supported by aalib still
19 cp ${automake}/share/automake*/config.{sub,guess} .
20 configureFlagsArray+=(
22 "--includedir=$dev/include"
27 buildInputs = [ ncurses ];
29 configureFlags = [ "--without-x" "--with-ncurses=${ncurses.dev}" ];
33 mv $bin/bin/aalib-config $dev/bin/aalib-config
34 substituteInPlace $out/lib/libaa.la --replace "${ncurses.dev}/lib" "${ncurses.out}/lib"
38 description = "ASCII art graphics library";
39 platforms = lib.platforms.unix;
40 license = lib.licenses.lgpl2;