csfml: init at 2.4 (#33000)

This commit is contained in:
Joe Doyle 2017-12-28 16:04:02 -05:00 committed by Vincent Laporte
parent d54384bb80
commit e9886dde9b
3 changed files with 33 additions and 0 deletions

View file

@ -325,6 +325,7 @@
joko = "Ioannis Koutras <ioannis.koutras@gmail.com>";
jonafato = "Jon Banafato <jon@jonafato.com>";
joncojonathan = "Jonathan Haddock <joncojonathan@gmail.com>";
jpdoyle = "Joe Doyle <joethedoyle@gmail.com>";
jpierre03 = "Jean-Pierre PRUNARET <nix@prunetwork.fr>";
jpotier = "Martin Potier <jpo.contributes.to.nixos@marvid.fr>";
jraygauthier = "Raymond Gauthier <jraygauthier@gmail.com>";

View file

@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, cmake, sfml }:
let
version = "2.4";
in
stdenv.mkDerivation {
name = "csfml-${version}";
src = fetchFromGitHub {
owner = "SFML";
repo = "CSFML";
rev = "b5facb85d13bff451a5fd2d088a97472a685576c";
sha256 = "1q716gd7c7jlxzwpq5z4rjj5lsrn71ql2djphccdf9jannllqizn";
};
buildInputs = [ cmake sfml ];
cmakeFlags = [ "-DCMAKE_MODULE_PATH=${sfml}/share/SFML/cmake/Modules/" ];
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.jpdoyle ];
platforms = platforms.linux ++ platforms.darwin;
};
}

View file

@ -10838,6 +10838,7 @@ with pkgs;
simp_le = callPackage ../tools/admin/simp_le { };
sfml = callPackage ../development/libraries/sfml { };
csfml = callPackage ../development/libraries/csfml { };
shapelib = callPackage ../development/libraries/shapelib { };