aalib: Split into multiple outputs
This commit is contained in:
parent
636b823cc1
commit
31e1034800
@ -8,16 +8,30 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv";
|
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
|
# The fuloong2f is not supported by aalib still
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
cp ${automake}/share/automake*/config.{sub,guess} .
|
cp ${automake}/share/automake*/config.{sub,guess} .
|
||||||
|
configureFlagsArray+=(
|
||||||
|
"--bindir=$bin/bin"
|
||||||
|
"--includedir=$dev/include"
|
||||||
|
"--libdir=$out/lib"
|
||||||
|
)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildInputs = [ ncurses ];
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
configureFlags = "--without-x --with-ncurses=${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 = {
|
meta = {
|
||||||
description = "ASCII art graphics library";
|
description = "ASCII art graphics library";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user