python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / aalib / default.nix
blobaf0fa61740150c62e159333cabe0c80593c6e097
1 {lib, stdenv, fetchurl, ncurses, automake}:
3 stdenv.mkDerivation rec {
4   pname = "aalib";
5   version = "1.4rc5";
7   src = fetchurl {
8     url = "mirror://sourceforge/aa-project/aalib-${version}.tar.gz";
9     sha256 = "1vkh19gb76agvh4h87ysbrgy82hrw88lnsvhynjf4vng629dmpgv";
10   };
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
18   preConfigure = ''
19     cp ${automake}/share/automake*/config.{sub,guess} .
20     configureFlagsArray+=(
21       "--bindir=$bin/bin"
22       "--includedir=$dev/include"
23       "--libdir=$out/lib"
24     )
25   '';
27   buildInputs = [ ncurses ];
29   configureFlags = [ "--without-x" "--with-ncurses=${ncurses.dev}" ];
31   postInstall = ''
32     mkdir -p $dev/bin
33     mv $bin/bin/aalib-config $dev/bin/aalib-config
34     substituteInPlace $out/lib/libaa.la --replace "${ncurses.dev}/lib" "${ncurses.out}/lib"
35   '';
37   meta = {
38     description = "ASCII art graphics library";
39     platforms = lib.platforms.unix;
40     license = lib.licenses.lgpl2;
41   };