2016-07-25 19:30:34 +00:00
|
|
|
{ stdenv, fetchurl, cmake, libX11, freetype, libjpeg, openal, flac, libvorbis
|
|
|
|
, glew, libXrandr, libXrender, udev, xcbutilimage
|
2011-03-20 18:21:37 +00:00
|
|
|
}:
|
2016-07-25 19:30:34 +00:00
|
|
|
|
|
|
|
let
|
2017-01-26 23:02:51 +00:00
|
|
|
version = "2.4.1";
|
2016-07-25 19:30:34 +00:00
|
|
|
in
|
|
|
|
|
2011-03-20 18:21:37 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-25 19:30:34 +00:00
|
|
|
name = "sfml-${version}";
|
2015-04-19 20:46:51 +00:00
|
|
|
src = fetchurl {
|
2016-07-25 19:30:34 +00:00
|
|
|
url = "https://github.com/LaurentGomila/SFML/archive/${version}.tar.gz";
|
2017-01-26 23:02:51 +00:00
|
|
|
sha256 = "13irazmqk9vcgkigsjcxns7xjmnz1gifw0b656z1rpz208diklgr";
|
2011-03-20 18:21:37 +00:00
|
|
|
};
|
2016-07-25 19:30:34 +00:00
|
|
|
buildInputs = [ cmake libX11 freetype libjpeg openal flac libvorbis glew
|
|
|
|
libXrandr libXrender udev xcbutilimage
|
2011-03-20 18:21:37 +00:00
|
|
|
];
|
2016-09-06 11:29:09 +00:00
|
|
|
cmakeFlags = [ "-DSFML_INSTALL_PKGCONFIG_FILES=yes" ];
|
2011-03-20 18:21:37 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.sfml-dev.org/;
|
2013-10-06 09:49:53 +00:00
|
|
|
description = "Simple and fast multimedia library";
|
|
|
|
longDescription = ''
|
2015-04-19 20:46:51 +00:00
|
|
|
SFML is a simple, fast, cross-platform and object-oriented multimedia API.
|
|
|
|
It provides access to windowing, graphics, audio and network.
|
|
|
|
It is written in C++, and has bindings for various languages such as C, .Net, Ruby, Python.
|
2013-10-06 09:49:53 +00:00
|
|
|
'';
|
2011-03-20 18:21:37 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = [ maintainers.astsmtl ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.linux;
|
2011-03-20 18:21:37 +00:00
|
|
|
};
|
|
|
|
}
|