1 { lib, stdenv, fetchFromGitHub, raylib }:
3 stdenv.mkDerivation rec {
4 pname = "raylib-games";
5 version = "2022-10-24";
7 src = fetchFromGitHub {
10 rev = "e00d77cf96ba63472e8316ae95a23c624045dcbe";
11 hash = "sha256-N9ip8yFUqXmNMKcvQuOyxDI4yF/w1YaoIh0prvS4Xr4=";
14 buildInputs = [ raylib ];
19 if [ -d $d/src/resources ]; then
20 for f in $d/src/*.c $d/src/*.h; do
21 sed "s|\"resources/|\"$out/resources/$d/|g" -i $f
31 if [ -f $d/src/Makefile ]; then
40 mkdir -p $out/bin $out/resources
41 find . -type f -executable -exec cp {} $out/bin \;
43 if [ -d "$d/src/resources" ]; then
44 cp -ar "$d/src/resources" "$out/resources/$d"
51 description = "A collection of games made with raylib ";
52 homepage = "https://www.raylib.com/games.html";
53 license = licenses.zlib;
54 maintainers = with maintainers; [ ehmry ];
55 inherit (raylib.meta) platforms;