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