Merge pull request #63608 from plapadoo/sdl-gpu-init
SDL_gpu: init at 20190124
This commit is contained in:
commit
2519fe34e2
36
pkgs/development/libraries/SDL_gpu/default.nix
Normal file
36
pkgs/development/libraries/SDL_gpu/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, SDL2, libGLU }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "SDL_gpu-unstable";
|
||||
version = "2019-01-24";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "grimfang4";
|
||||
repo = "sdl-gpu";
|
||||
rev = "e3d350b325a0e0d0b3007f69ede62313df46c6ef";
|
||||
sha256 = "0kibcaim01inb6xxn4mr6affn4hm50vz9kahb5k9iz8dmdsrhxy1";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = [ SDL2 libGLU ];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DSDL_gpu_BUILD_DEMOS=OFF"
|
||||
"-DSDL_gpu_BUILD_TOOLS=OFF"
|
||||
"-DSDL_gpu_BUILD_VIDEO_TEST=OFF"
|
||||
"-DSDL_gpu_BUILD_TESTS=OFF"
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
sed -ie '210s#''${OUTPUT_DIR}/lib#''${CMAKE_INSTALL_LIBDIR}#' src/CMakeLists.txt
|
||||
sed -ie '213s#''${OUTPUT_DIR}/lib#''${CMAKE_INSTALL_LIBDIR}#' src/CMakeLists.txt
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "A library for high-performance, modern 2D graphics with SDL written in C";
|
||||
homepage = "https://github.com/grimfang4/sdl-gpu";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ pmiddend ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
@ -13124,6 +13124,8 @@ in
|
||||
|
||||
SDL_gfx = callPackage ../development/libraries/SDL_gfx { };
|
||||
|
||||
SDL_gpu = callPackage ../development/libraries/SDL_gpu { };
|
||||
|
||||
SDL_image = callPackage ../development/libraries/SDL_image { };
|
||||
|
||||
SDL_mixer = callPackage ../development/libraries/SDL_mixer { };
|
||||
|
Loading…
Reference in New Issue
Block a user