3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/sfml/default.nix

32 lines
1.1 KiB
Nix
Raw Normal View History

2016-07-25 20:30:34 +01:00
{ stdenv, fetchurl, cmake, libX11, freetype, libjpeg, openal, flac, libvorbis
, glew, libXrandr, libXrender, udev, xcbutilimage
}:
2016-07-25 20:30:34 +01:00
let
2017-10-01 06:16:16 +01:00
version = "2.4.2";
2016-07-25 20:30:34 +01:00
in
stdenv.mkDerivation rec {
2016-07-25 20:30:34 +01:00
name = "sfml-${version}";
src = fetchurl {
2017-10-01 06:16:16 +01:00
url = "https://github.com/SFML/SFML/archive/${version}.tar.gz";
sha256 = "cf268fb487e4048c85e5b2f53d62596854762c98cba1c1b61ccd91f78253ef4b";
};
2016-07-25 20:30:34 +01:00
buildInputs = [ cmake libX11 freetype libjpeg openal flac libvorbis glew
libXrandr libXrender udev xcbutilimage
];
2016-09-06 12:29:09 +01:00
cmakeFlags = [ "-DSFML_INSTALL_PKGCONFIG_FILES=yes" ];
meta = with stdenv.lib; {
homepage = http://www.sfml-dev.org/;
description = "Simple and fast multimedia library";
longDescription = ''
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.
'';
license = licenses.zlib;
maintainers = [ maintainers.astsmtl ];
platforms = platforms.linux;
};
}