fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{stdenv, fetchurl, ncurses, automake}:
2
3stdenv.mkDerivation {
4 name = "aalib-1.4rc5";
5
6 src = fetchurl {
7 url = mirror://sourceforge/aa-project/aalib-1.4rc5.tar.gz;
8 sha256 = "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv";
9 };
10
11 outputs = [ "bin" "dev" "out" "doc" ];
12 setOutputFlags = false; # Doesn't support all the flags
13
14 patches = stdenv.lib.optionals stdenv.isDarwin [ ./darwin.patch ];
15
16 # The fuloong2f is not supported by aalib still
17 preConfigure = ''
18 cp ${automake}/share/automake*/config.{sub,guess} .
19 configureFlagsArray+=(
20 "--bindir=$bin/bin"
21 "--includedir=$dev/include"
22 "--libdir=$out/lib"
23 )
24 '';
25
26 buildInputs = [ ncurses ];
27
28 configureFlags = "--without-x --with-ncurses=${ncurses.dev}";
29
30 postInstall = ''
31 mkdir -p $dev/bin
32 mv $bin/bin/aalib-config $dev/bin/aalib-config
33 substituteInPlace $out/lib/libaa.la --replace "${ncurses.dev}/lib" "${ncurses.out}/lib"
34 '';
35
36 meta = {
37 description = "ASCII art graphics library";
38 platforms = stdenv.lib.platforms.unix;
39 };
40}