aalib: Split into multiple outputs

This commit is contained in:
Tuomas Tynkkynen 2015-10-21 01:20:52 +03:00 committed by Vladimír Čunát
parent 636b823cc1
commit 31e1034800

View File

@ -8,16 +8,30 @@ stdenv.mkDerivation {
sha256 = "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv";
};
outputs = [ "dev" "out" "bin" "doc" ];
setOutputFlags = false; # Doesn't support all the flags
patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin.patch ];
# The fuloong2f is not supported by aalib still
preConfigure = ''
cp ${automake}/share/automake*/config.{sub,guess} .
configureFlagsArray+=(
"--bindir=$bin/bin"
"--includedir=$dev/include"
"--libdir=$out/lib"
)
'';
buildInputs = [ ncurses ];
configureFlags = "--without-x --with-ncurses=${ncurses}";
patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin.patch ];
postInstall = ''
mkdir -p $dev/bin
mv $bin/bin/aalib-config $dev/bin/aalib-config
substituteInPlace $out/lib/libaa.la --replace "${ncurses.dev}/lib" "${ncurses.lib}/lib"
'';
meta = {
description = "ASCII art graphics library";