summary refs log tree commit diff
path: root/pkgs/development/libraries/sfml/default.nix
blob: 844505cb3599f317d72bf2b545863f1d5a2d41b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchgit, cmake, mesa, libX11, freetype, libjpeg, openal, libsndfile
, glew, libXrandr, libXrender
}:
stdenv.mkDerivation rec {
  name = "sfml-git-20110428";
  src = fetchgit {
    url = "http://github.com/LaurentGomila/SFML.git";
    rev = "6eac4256f3be353f51ee";
    sha256 = "1b4f1901e0e482dbc0ad60e2821af766fb8ce093de51d678918ac2a0fb6e8587";
  };
  buildInputs = [ cmake mesa libX11 freetype libjpeg openal libsndfile glew
                  libXrandr libXrender
                ];
  patchPhase = "
    substituteInPlace CMakeLists.txt --replace '\${CMAKE_ROOT}/Modules' 'share/cmake-2.8/Modules'
  ";
  meta = with stdenv.lib; {
    homepage = http://www.sfml-dev.org/;
    description = "Simple and fast multimedia library";
    longDescription = ''
      SFML provides a simple interface to the various components of your PC, to
      ease the development of games and multimedia applications. It is composed
      of five modules: system, window, graphics, audio and network.
    '';
    license = licenses.zlib;
    maintainers = [ maintainers.astsmtl ];
  };
}