1 { lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU }:
4 pname = "SDL_gpu-unstable";
5 version = "2019-01-24";
7 src = fetchFromGitHub {
10 rev = "e3d350b325a0e0d0b3007f69ede62313df46c6ef";
11 sha256 = "0kibcaim01inb6xxn4mr6affn4hm50vz9kahb5k9iz8dmdsrhxy1";
14 nativeBuildInputs = [ cmake ];
15 buildInputs = [ SDL2 libGLU ];
18 "-DSDL_gpu_BUILD_DEMOS=OFF"
19 "-DSDL_gpu_BUILD_TOOLS=OFF"
20 "-DSDL_gpu_BUILD_VIDEO_TEST=OFF"
21 "-DSDL_gpu_BUILD_TESTS=OFF"
25 sed -ie '210s#''${OUTPUT_DIR}/lib#''${CMAKE_INSTALL_LIBDIR}#' src/CMakeLists.txt
26 sed -ie '213s#''${OUTPUT_DIR}/lib#''${CMAKE_INSTALL_LIBDIR}#' src/CMakeLists.txt
30 description = "A library for high-performance, modern 2D graphics with SDL written in C";
31 homepage = "https://github.com/grimfang4/sdl-gpu";
32 license = licenses.mit;
33 maintainers = with maintainers; [ pmiddend ];
34 platforms = platforms.linux;