mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 10:12:58 +00:00
28 lines
797 B
Nix
28 lines
797 B
Nix
{ 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
|
|
'';
|
|
|
|
configureFlags = [ "--with-agar=${libagar}" ];
|
|
|
|
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;
|
|
};
|
|
}
|