File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 fetchurl ,
55 pkg-config ,
66 libtool ,
7- perl ,
8- bsdbuild ,
97 gettext ,
10- mandoc ,
118 libpng ,
129 libjpeg ,
1310 libxinerama ,
1411 freetype ,
1512 SDL ,
1613 libGL ,
17- libsndfile ,
18- portaudio ,
1914 libmysqlclient ,
2015 fontconfig ,
16+ perl ,
2117} :
22-
2318stdenv . mkDerivation ( finalAttrs : {
2419 pname = "libagar" ;
25- version = "1.5.0 " ;
20+ version = "1.7.1 " ;
2621
2722 src = fetchurl {
2823 url = "https://stable.hypertriton.com/agar/agar-${ finalAttrs . version } .tar.gz" ;
29- sha256 = "001wcqk5z67qg0raw9zlwmv62drxiwqykvsbk10q2mrc6knjsd42 " ;
24+ hash = "sha256-0euZTIJizXDfHU2UYsVFMInbXcgV0BtXZ1CMKSOlllw= " ;
3025 } ;
3126
3227 preConfigure = ''
33- substituteInPlace configure.in \
34- --replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
35- cat configure.in | ${ bsdbuild } /bin/mkconfigure > configure
28+ substituteInPlace configure \
29+ --replace-fail '_BSD_SOURCE' '_DEFAULT_SOURCE'
3630 '' ;
3731
3832 configureFlags = [
39- "--with-libtool=${ libtool } /bin/libtool"
40- "--enable-nls=yes"
41- "--with-gettext=${ gettext } "
33+ "--enable-nls=no"
4234 "--with-jpeg=${ libjpeg . dev } "
4335 "--with-gl=${ libGL } "
4436 "--with-mysql=${ libmysqlclient } "
45- "--with-manpages=yes"
46- ] ;
47-
48- outputs = [
49- "out"
50- "devdoc"
5137 ] ;
5238
5339 nativeBuildInputs = [
@@ -57,26 +43,22 @@ stdenv.mkDerivation (finalAttrs: {
5743 ] ;
5844
5945 buildInputs = [
60- bsdbuild
6146 perl
6247 libxinerama
6348 SDL
6449 libGL
6550 libmysqlclient
66- mandoc
67- freetype . dev
51+ freetype
6852 libpng
69- libjpeg . dev
53+ libjpeg
7054 fontconfig
71- portaudio
72- libsndfile
7355 ] ;
7456
7557 meta = {
7658 description = "Cross-platform GUI toolkit" ;
7759 homepage = "http://libagar.org/index.html" ;
78- license = with lib . licenses ; bsd3 ;
60+ license = with lib . licenses ; [ bsd3 ] ;
7961 maintainers = with lib . maintainers ; [ ramkromberg ] ;
80- platforms = with lib . platforms ; linux ;
62+ platforms = lib . platforms . linux ;
8163 } ;
8264} )
Original file line number Diff line number Diff line change 11{
22 lib ,
33 stdenv ,
4- bsdbuild ,
54 libagar ,
65 perl ,
76 libjpeg ,
87 libpng ,
98 openssl ,
109} :
11-
1210stdenv . mkDerivation {
1311 pname = "libagar-test" ;
1412 inherit ( libagar ) version src ;
1513
1614 sourceRoot = "agar-${ libagar . version } /tests" ;
1715
18- # Workaround build failure on -fno-common toolchains:
19- # ld: textdlg.o:(.bss+0x0): multiple definition of `someString';
20- # configsettings.o:(.bss+0x0): first defined here
21- # TODO: the workaround can be removed once nixpkgs updates to 1.6.0.
22- env . NIX_CFLAGS_COMPILE = "-fcommon" ;
23-
24- preConfigure = ''
25- substituteInPlace configure.in \
26- --replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
27- cat configure.in | ${ bsdbuild } /bin/mkconfigure > configure
28- '' ;
29-
3016 configureFlags = [ "--with-agar=${ libagar } " ] ;
3117
3218 buildInputs = [
3319 perl
34- bsdbuild
3520 libagar
3621 libjpeg
3722 libpng
3823 openssl
3924 ] ;
4025
4126 meta = {
42- broken = ( stdenv . hostPlatform . isLinux && stdenv . hostPlatform . isAarch64 ) ;
4327 description = "Tests for libagar" ;
4428 mainProgram = "agartest" ;
4529 homepage = "http://libagar.org/index.html" ;
46- license = with lib . licenses ; bsd3 ;
30+ license = with lib . licenses ; [ bsd3 ] ;
4731 maintainers = with lib . maintainers ; [ ramkromberg ] ;
48- platforms = with lib . platforms ; linux ;
32+ platforms = lib . platforms . linux ;
33+ broken = ( stdenv . hostPlatform . isLinux && stdenv . hostPlatform . isAarch64 ) ;
4934 } ;
5035}
You can’t perform that action at this time.
0 commit comments