nixpkgs-suyu/pkgs/development/libraries/libagar/libagar_test.nix

28 lines
783 B
Nix
Raw Normal View History

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