libagar: init at 1.5
This commit is contained in:
parent
4677ad04c9
commit
afa4138a60
42
pkgs/development/libraries/libagar/default.nix
Normal file
42
pkgs/development/libraries/libagar/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ stdenv, fetchurl, pkgconfig, libtool, perl, bsdbuild, gettext, mandoc
|
||||
, libpng, libjpeg, xlibsWrapper, libXinerama, freetype, SDL, mesa
|
||||
, libsndfile, portaudio, mysql, fontconfig
|
||||
}:
|
||||
|
||||
let srcs = import ./srcs.nix { inherit fetchurl; }; in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libagar-${version}";
|
||||
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=${mesa}"
|
||||
"--with-mysql=yes"
|
||||
"--with-manpages=yes"
|
||||
];
|
||||
|
||||
outputs = [ "out" "devdoc" ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig libtool gettext ];
|
||||
buildInputs = [
|
||||
bsdbuild perl xlibsWrapper libXinerama SDL mesa mysql.client mandoc
|
||||
freetype.dev libpng libjpeg.dev fontconfig portaudio libsndfile
|
||||
];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Cross-platform GUI toolkit";
|
||||
homepage = http://libagar.org/index.html;
|
||||
license = with licenses; bsd3;
|
||||
maintainers = with maintainers; [ ramkromberg ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
27
pkgs/development/libraries/libagar/libagar_test.nix
Normal file
27
pkgs/development/libraries/libagar/libagar_test.nix
Normal file
@ -0,0 +1,27 @@
|
||||
{ stdenv, fetchurl, bsdbuild, libagar, perl, libjpeg, libpng, openssl }:
|
||||
|
||||
let srcs = import ./srcs.nix { inherit fetchurl; }; in
|
||||
stdenv.mkDerivation rec {
|
||||
name = "libagar-test-${version}";
|
||||
inherit (srcs) version src;
|
||||
|
||||
sourceRoot = "agar-1.5.0/tests";
|
||||
|
||||
preConfigure = ''
|
||||
substituteInPlace configure.in \
|
||||
--replace '_BSD_SOURCE' '_DEFAULT_SOURCE'
|
||||
cat configure.in | ${bsdbuild}/bin/mkconfigure > configure
|
||||
'';
|
||||
|
||||
configureFlags = "--with-agar=${libagar}";
|
||||
|
||||
buildInputs = [ perl bsdbuild libagar libjpeg libpng openssl ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Tests for libagar";
|
||||
homepage = http://libagar.org/index.html;
|
||||
license = with licenses; bsd3;
|
||||
maintainers = with maintainers; [ ramkromberg ];
|
||||
platforms = with platforms; linux;
|
||||
};
|
||||
}
|
10
pkgs/development/libraries/libagar/srcs.nix
Normal file
10
pkgs/development/libraries/libagar/srcs.nix
Normal file
@ -0,0 +1,10 @@
|
||||
{ fetchurl }:
|
||||
rec {
|
||||
version = "1.5.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://stable.hypertriton.com/agar/agar-${version}.tar.gz";
|
||||
sha256 = "001wcqk5z67qg0raw9zlwmv62drxiwqykvsbk10q2mrc6knjsd42";
|
||||
};
|
||||
|
||||
}
|
@ -7904,6 +7904,9 @@ in
|
||||
|
||||
libaccounts-glib = callPackage ../development/libraries/libaccounts-glib { };
|
||||
|
||||
libagar = callPackage ../development/libraries/libagar { };
|
||||
libagar_test = callPackage ../development/libraries/libagar/libagar_test.nix { };
|
||||
|
||||
libao = callPackage ../development/libraries/libao {
|
||||
usePulseAudio = config.pulseaudio or true;
|
||||
inherit (darwin.apple_sdk.frameworks) CoreAudio CoreServices AudioUnit;
|
||||
|
Loading…
Reference in New Issue
Block a user