Files
nixpkgs/pkgs/development/libraries/libagar/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

83 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchurl,
pkg-config,
libtool,
perl,
bsdbuild,
gettext,
mandoc,
libpng,
libjpeg,
libXinerama,
freetype,
SDL,
libGL,
libsndfile,
portaudio,
libmysqlclient,
fontconfig,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libagar";
version = "1.5.0";
src = fetchurl {
url = "http://stable.hypertriton.com/agar/agar-${finalAttrs.version}.tar.gz";
sha256 = "001wcqk5z67qg0raw9zlwmv62drxiwqykvsbk10q2mrc6knjsd42";
};
preConfigure = ''
substituteInPlace configure.in \
--replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
'';
configureFlags = [
"--with-libtool=${libtool}/bin/libtool"
"--enable-nls=yes"
"--with-gettext=${gettext}"
"--with-jpeg=${libjpeg.dev}"
"--with-gl=${libGL}"
"--with-mysql=${libmysqlclient}"
"--with-manpages=yes"
];
outputs = [
"out"
"devdoc"
];
nativeBuildInputs = [
pkg-config
libtool
gettext
];
buildInputs = [
bsdbuild
perl
libXinerama
SDL
libGL
libmysqlclient
mandoc
freetype.dev
libpng
libjpeg.dev
fontconfig
portaudio
libsndfile
];
meta = {
description = "Cross-platform GUI toolkit";
homepage = "http://libagar.org/index.html";
license = with lib.licenses; bsd3;
maintainers = with lib.maintainers; [ ramkromberg ];
platforms = with lib.platforms; linux;
};
})