3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libagar/libagar_test.nix

28 lines
797 B
Nix
Raw Normal View History

2016-08-25 06:45:10 +01:00
{ stdenv, fetchurl, bsdbuild, libagar, perl, libjpeg, libpng, openssl }:
let srcs = import ./srcs.nix { inherit fetchurl; }; in
stdenv.mkDerivation rec {
name = "libagar-test-${version}";
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 22:44:21 +01:00
configureFlags = [ "--with-agar=${libagar}" ];
2016-08-25 06:45:10 +01:00
buildInputs = [ perl bsdbuild libagar libjpeg libpng openssl ];
meta = with stdenv.lib; {
description = "Tests for libagar";
homepage = http://libagar.org/index.html;
license = with licenses; bsd3;
maintainers = with maintainers; [ ramkromberg ];
platforms = with platforms; linux;
};
}