1 { lib, stdenv, fetchurl, bsdbuild, libagar, perl, libjpeg, libpng, openssl }:
4 pname = "libagar-test";
5 inherit (libagar) version src;
7 sourceRoot = "agar-${libagar.version}/tests";
9 # Workaround build failure on -fno-common toolchains:
10 # ld: textdlg.o:(.bss+0x0): multiple definition of `someString';
11 # configsettings.o:(.bss+0x0): first defined here
12 # TODO: the workaround can be removed once nixpkgs updates to 1.6.0.
13 env.NIX_CFLAGS_COMPILE = "-fcommon";
16 substituteInPlace configure.in \
17 --replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
18 cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
21 configureFlags = [ "--with-agar=${libagar}" ];
23 buildInputs = [ perl bsdbuild libagar libjpeg libpng openssl ];
26 broken = (stdenv.isLinux && stdenv.isAarch64);
27 description = "Tests for libagar";
28 homepage = "http://libagar.org/index.html";
29 license = with licenses; bsd3;
30 maintainers = with maintainers; [ ramkromberg ];
31 platforms = with platforms; linux;