2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, sfml }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-18 21:22:44 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "csfml";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "2.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SFML";
|
|
|
|
repo = "CSFML";
|
|
|
|
rev = version;
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "sha256-a46V5CakKVygNfr3/nZwlsCyqNsbti4a3cr7itK5QfI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-01-15 22:18:51 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ sfml ];
|
2020-04-24 23:36:52 +00:00
|
|
|
cmakeFlags = [ "-DCMAKE_MODULE_PATH=${sfml}/share/SFML/cmake/Modules/" ];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://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.jpdoyle ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|