depot/third_party/nixpkgs/pkgs/development/libraries/libagar/default.nix
Default email 01ed8ef136 Project import generated by Copybara.
GitOrigin-RevId: 20fc948445a6c22d4e8d5178e9a6bc6e1f5417c8
2022-11-21 19:40:18 +02:00

43 lines
1.2 KiB
Nix

{ lib, stdenv, fetchurl, pkg-config, libtool, perl, bsdbuild, gettext, mandoc
, libpng, libjpeg, libXinerama, freetype, SDL, libGLU, libGL
, libsndfile, portaudio, libmysqlclient, fontconfig
}:
let srcs = import ./srcs.nix { inherit fetchurl; }; in
stdenv.mkDerivation {
pname = "libagar";
inherit (srcs) version src;
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 = with lib; {
description = "Cross-platform GUI toolkit";
homepage = "http://libagar.org/index.html";
license = with licenses; bsd3;
maintainers = with maintainers; [ ramkromberg ];
platforms = with platforms; linux;
};
}