Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 pkg-config, 6 libtool, 7 perl, 8 bsdbuild, 9 gettext, 10 mandoc, 11 libpng, 12 libjpeg, 13 libXinerama, 14 freetype, 15 SDL, 16 libGL, 17 libsndfile, 18 portaudio, 19 libmysqlclient, 20 fontconfig, 21}: 22 23stdenv.mkDerivation (finalAttrs: { 24 pname = "libagar"; 25 version = "1.5.0"; 26 27 src = fetchurl { 28 url = "http://stable.hypertriton.com/agar/agar-${finalAttrs.version}.tar.gz"; 29 sha256 = "001wcqk5z67qg0raw9zlwmv62drxiwqykvsbk10q2mrc6knjsd42"; 30 }; 31 32 preConfigure = '' 33 substituteInPlace configure.in \ 34 --replace '_BSD_SOURCE' '_DEFAULT_SOURCE' 35 cat configure.in | ${bsdbuild}/bin/mkconfigure > configure 36 ''; 37 38 configureFlags = [ 39 "--with-libtool=${libtool}/bin/libtool" 40 "--enable-nls=yes" 41 "--with-gettext=${gettext}" 42 "--with-jpeg=${libjpeg.dev}" 43 "--with-gl=${libGL}" 44 "--with-mysql=${libmysqlclient}" 45 "--with-manpages=yes" 46 ]; 47 48 outputs = [ 49 "out" 50 "devdoc" 51 ]; 52 53 nativeBuildInputs = [ 54 pkg-config 55 libtool 56 gettext 57 ]; 58 59 buildInputs = [ 60 bsdbuild 61 perl 62 libXinerama 63 SDL 64 libGL 65 libmysqlclient 66 mandoc 67 freetype.dev 68 libpng 69 libjpeg.dev 70 fontconfig 71 portaudio 72 libsndfile 73 ]; 74 75 meta = with lib; { 76 description = "Cross-platform GUI toolkit"; 77 homepage = "http://libagar.org/index.html"; 78 license = with licenses; bsd3; 79 maintainers = with maintainers; [ ramkromberg ]; 80 platforms = with platforms; linux; 81 }; 82})