2017-12-28 21:04:02 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, sfml }:
|
|
|
|
|
|
|
|
let
|
2019-12-20 21:58:53 +00:00
|
|
|
version = "2.5";
|
2017-12-28 21:04:02 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "csfml";
|
|
|
|
inherit version;
|
2017-12-28 21:04:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SFML";
|
|
|
|
repo = "CSFML";
|
2019-12-20 21:58:53 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "071magxif5nrdddzk2z34czqmz1dfws4d7dqynb2zpn7cwhwxcpm";
|
2017-12-28 21:04:02 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ cmake sfml ];
|
|
|
|
cmakeFlags = [ "-DCMAKE_MODULE_PATH=${sfml}/share/SFML/cmake/Modules/" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.sfml-dev.org/";
|
2017-12-28 21:04:02 +00:00
|
|
|
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.jpdoyle ];
|
2018-09-13 21:03:09 +00:00
|
|
|
platforms = platforms.linux;
|
2017-12-28 21:04:02 +00:00
|
|
|
};
|
|
|
|
}
|