diff --git a/pkgs/development/libraries/sfml/default.nix b/pkgs/development/libraries/sfml/default.nix new file mode 100644 index 000000000000..a04f5caabe27 --- /dev/null +++ b/pkgs/development/libraries/sfml/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchsvn, cmake, mesa, libX11, freetype, libjpeg, openal, libsndfile +, glew, libXrandr, libXrender +}: +stdenv.mkDerivation rec { + name = "sfml-svn-${version}"; + version = "1808"; + src = fetchsvn { + url = "https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2"; + rev = version; + }; + 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 = "A multimedia C++ API that provides access to graphics, input, audio, etc."; + license = licenses.zlib; + maintainers = [ maintainers.astsmtl ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ad22863b4ff7..b8aba541e9c1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4048,6 +4048,8 @@ let SDL_ttf = callPackage ../development/libraries/SDL_ttf { }; + sfml_svn = callPackage ../development/libraries/sfml { }; + slang = callPackage ../development/libraries/slang { }; slibGuile = callPackage ../development/libraries/slib {