2016-07-25 21:30:34 +02:00
|
|
|
{ stdenv, fetchurl, cmake, libX11, freetype, libjpeg, openal, flac, libvorbis
|
|
|
|
, glew, libXrandr, libXrender, udev, xcbutilimage
|
2011-03-20 19:21:37 +01:00
|
|
|
}:
|
2016-07-25 21:30:34 +02:00
|
|
|
|
|
|
|
let
|
|
|
|
version = "2.3";
|
|
|
|
in
|
|
|
|
|
2011-03-20 19:21:37 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-07-25 21:30:34 +02:00
|
|
|
name = "sfml-${version}";
|
2015-04-19 22:46:51 +02:00
|
|
|
src = fetchurl {
|
2016-07-25 21:30:34 +02:00
|
|
|
url = "https://github.com/LaurentGomila/SFML/archive/${version}.tar.gz";
|
|
|
|
sha256 = "12588hfs0pfsv20x3zhq0gdmxv9m7g27i5lfz88303kpglp9yzn2";
|
2011-03-20 19:21:37 +01:00
|
|
|
};
|
2016-07-25 21:30:34 +02:00
|
|
|
buildInputs = [ cmake libX11 freetype libjpeg openal flac libvorbis glew
|
|
|
|
libXrandr libXrender udev xcbutilimage
|
2011-03-20 19:21:37 +01:00
|
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://www.sfml-dev.org/;
|
2013-10-06 11:49:53 +02:00
|
|
|
description = "Simple and fast multimedia library";
|
|
|
|
longDescription = ''
|
2015-04-19 22:46:51 +02: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 11:49:53 +02:00
|
|
|
'';
|
2011-03-20 19:21:37 +01:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = [ maintainers.astsmtl ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = platforms.linux;
|
2011-03-20 19:21:37 +01:00
|
|
|
};
|
|
|
|
}
|