@@ -1,26 +1,22 @@
1−{ stdenv, fetchgit, cmake, mesa, libX11, freetype, libjpeg, openal, libsndfile
2−, glew, libXrandr, libXrender
1+{ stdenv, fetchurl, cmake, libX11, freetype, libjpeg, openal, libsndfile
2+, glew, libXrandr, libXrender, udev
33}:
44stdenv.mkDerivation rec {
5− name = "sfml-git-20110428";
6− src = fetchgit {
7− url = "http://github.com/LaurentGomila/SFML.git";
8− rev = "6eac4256f3be353f51ee";
9− sha256 = "1b4f1901e0e482dbc0ad60e2821af766fb8ce093de51d678918ac2a0fb6e8587";
5+ name = "sfml-2.2";
6+ src = fetchurl {
7+ url = "https://github.com/LaurentGomila/SFML/archive/2.2.tar.gz";
8+ sha256 = "1xbpzkqwgbsjdda7n3c2z5m16bhppz1z9rbhmhb8r1im7s95hd2l";
109 };
11− buildInputs = [ cmake mesa libX11 freetype libjpeg openal libsndfile glew
12− libXrandr libXrender
10+ buildInputs = [ cmake libX11 freetype libjpeg openal libsndfile glew
11+ libXrandr libXrender udev
1312 ];
14− patchPhase = "
15− substituteInPlace CMakeLists.txt --replace '\${CMAKE_ROOT}/Modules' 'share/cmake-2.8/Modules'
16− ";
1713 meta = with stdenv.lib; {
1814 homepage = http://www.sfml-dev.org/;
1915 description = "Simple and fast multimedia library";
2016 longDescription = ''
21− SFML provides a simple interface to the various components of your PC, to
22− ease the development of games and multimedia applications. It is composed
23− of five modules: system, window, graphics, audio and network.
17+ SFML is a simple, fast, cross-platform and object-oriented multimedia API.
18+ It provides access to windowing, graphics, audio and network.
19+ It is written in C++, and has bindings for various languages such as C, .Net, Ruby, Python.
2420 '';
2521 license = licenses.zlib;
2622 maintainers = [ maintainers.astsmtl ];