mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-16 20:30:22 +00:00
65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
pkg-config,
|
|
libtool,
|
|
gettext,
|
|
libpng,
|
|
libjpeg,
|
|
libxinerama,
|
|
freetype,
|
|
SDL,
|
|
libGL,
|
|
libmysqlclient,
|
|
fontconfig,
|
|
perl,
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "libagar";
|
|
version = "1.7.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://stable.hypertriton.com/agar/agar-${finalAttrs.version}.tar.gz";
|
|
hash = "sha256-0euZTIJizXDfHU2UYsVFMInbXcgV0BtXZ1CMKSOlllw=";
|
|
};
|
|
|
|
preConfigure = ''
|
|
substituteInPlace configure \
|
|
--replace-fail '_BSD_SOURCE' '_DEFAULT_SOURCE'
|
|
'';
|
|
|
|
configureFlags = [
|
|
"--enable-nls=no"
|
|
"--with-jpeg=${libjpeg.dev}"
|
|
"--with-gl=${libGL}"
|
|
"--with-mysql=${libmysqlclient}"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
libtool
|
|
gettext
|
|
];
|
|
|
|
buildInputs = [
|
|
perl
|
|
libxinerama
|
|
SDL
|
|
libGL
|
|
libmysqlclient
|
|
freetype
|
|
libpng
|
|
libjpeg
|
|
fontconfig
|
|
];
|
|
|
|
meta = {
|
|
description = "Cross-platform GUI toolkit";
|
|
homepage = "http://libagar.org/index.html";
|
|
license = lib.licenses.bsd3;
|
|
maintainers = with lib.maintainers; [ ramkromberg ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|