2016-08-24 22:45:10 -07:00
|
|
|
{ stdenv, fetchurl, bsdbuild, libagar, perl, libjpeg, libpng, openssl }:
|
|
|
|
|
|
|
|
let srcs = import ./srcs.nix { inherit fetchurl; }; in
|
2019-08-13 14:52:01 -07:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "libagar-test";
|
2016-08-24 22:45:10 -07:00
|
|
|
inherit (srcs) version src;
|
|
|
|
|
|
|
|
sourceRoot = "agar-1.5.0/tests";
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace configure.in \
|
|
|
|
--replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
|
|
|
|
cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
|
|
|
|
'';
|
|
|
|
|
2018-07-25 14:44:21 -07:00
|
|
|
configureFlags = [ "--with-agar=${libagar}" ];
|
2016-08-24 22:45:10 -07:00
|
|
|
|
|
|
|
buildInputs = [ perl bsdbuild libagar libjpeg libpng openssl ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Tests for libagar";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "http://libagar.org/index.html";
|
2016-08-24 22:45:10 -07:00
|
|
|
license = with licenses; bsd3;
|
|
|
|
maintainers = with maintainers; [ ramkromberg ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|