2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, sfml }:
|
2017-12-28 21:04:02 +00:00
|
|
|
|
2021-07-17 17:56:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-13 21:52:01 +00:00
|
|
|
pname = "csfml";
|
2021-07-22 05:20:14 +00:00
|
|
|
version = "2.5.1";
|
2017-12-28 21:04:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SFML";
|
|
|
|
repo = "CSFML";
|
2019-12-20 21:58:53 +00:00
|
|
|
rev = version;
|
2021-07-22 05:20:14 +00:00
|
|
|
sha256 = "sha256-a46V5CakKVygNfr3/nZwlsCyqNsbti4a3cr7itK5QfI=";
|
2017-12-28 21:04:02 +00:00
|
|
|
};
|
2020-12-31 07:48:55 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ sfml ];
|
2017-12-28 21:04:02 +00:00
|
|
|
cmakeFlags = [ "-DCMAKE_MODULE_PATH=${sfml}/share/SFML/cmake/Modules/" ];
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with 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
|
|
|
};
|
|
|
|
}
|