nixpkgs/pkgs/development/libraries/aalib/default.nix

42 lines
1.1 KiB
Nix
Raw Normal View History

{stdenv, fetchurl, ncurses, automake}:
stdenv.mkDerivation {
2013-12-18 11:30:58 +00:00
name = "aalib-1.4rc5";
2013-12-18 11:33:12 +00:00
src = fetchurl {
url = "mirror://sourceforge/aa-project/aalib-1.4rc5.tar.gz";
2013-12-18 11:30:58 +00:00
sha256 = "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv";
};
outputs = [ "bin" "dev" "out" "man" "info" ];
2015-10-20 23:20:52 +01:00
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} .
2015-10-20 23:20:52 +01:00
configureFlagsArray+=(
"--bindir=$bin/bin"
"--includedir=$dev/include"
"--libdir=$out/lib"
)
'';
2013-12-18 11:33:12 +00:00
buildInputs = [ ncurses ];
2018-07-25 22:44:21 +01:00
configureFlags = [ "--without-x" "--with-ncurses=${ncurses.dev}" ];
2015-10-20 23:20:52 +01:00
postInstall = ''
mkdir -p $dev/bin
mv $bin/bin/aalib-config $dev/bin/aalib-config
substituteInPlace $out/lib/libaa.la --replace "${ncurses.dev}/lib" "${ncurses.out}/lib"
2015-10-20 23:20:52 +01:00
'';
2015-04-01 21:29:38 +01:00
meta = {
description = "ASCII art graphics library";
platforms = stdenv.lib.platforms.unix;
2018-07-22 16:17:37 +01:00
license = stdenv.lib.licenses.lgpl2;
};
}