2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, bsdbuild, libagar, perl, libjpeg, libpng, openssl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let srcs = import ./srcs.nix { inherit fetchurl; }; in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "libagar-test";
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureFlags = [ "--with-agar=${libagar}" ];
|
|
|
|
|
|
|
|
buildInputs = [ perl bsdbuild libagar libjpeg libpng openssl ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tests for libagar";
|
|
|
|
homepage = "http://libagar.org/index.html";
|
|
|
|
license = with licenses; bsd3;
|
|
|
|
maintainers = with maintainers; [ ramkromberg ];
|
|
|
|
platforms = with platforms; linux;
|
|
|
|
};
|
|
|
|
}
|