openxcom: build with SDL_compat

This commit is contained in:
Peter Hoeg 2022-05-23 09:11:59 +08:00
parent 1f12226231
commit d9e295cdef
2 changed files with 24 additions and 12 deletions

View File

@ -1,26 +1,38 @@
{lib, stdenv, fetchFromGitHub, cmake, libGLU, libGL, zlib, openssl, libyamlcpp, boost
, SDL, SDL_image, SDL_mixer, SDL_gfx }:
{ lib
, stdenv
, fetchFromGitHub
, cmake
, libGLU
, libGL
, zlib
, openssl
, libyamlcpp
, boost
, SDL
, SDL_image
, SDL_mixer
, SDL_gfx
}:
let version = "1.0.0.2019.10.18"; in
stdenv.mkDerivation {
stdenv.mkDerivation rec {
pname = "openxcom";
inherit version;
version = "1.0.0.2019.10.18";
src = fetchFromGitHub {
owner = "OpenXcom";
repo = "OpenXcom";
rev = "f9853b2cb8c8f741ac58707487ef493416d890a3";
sha256 = "0kbfawj5wsp1mwfcm5mwpkq6s3d13pailjm5w268gqpxjksziyq0";
hash = "sha256-APv49ZT94oeM4KVKGtUdoQ1t8Ly8lsocr+FqXiRXbk0=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ SDL SDL_gfx SDL_image SDL_mixer boost libyamlcpp libGLU libGL openssl zlib ];
meta = {
meta = with lib; {
description = "Open source clone of UFO: Enemy Unknown";
homepage = "https://openxcom.org";
maintainers = [ lib.maintainers.cpages ];
platforms = lib.platforms.linux;
license = lib.licenses.gpl3;
maintainers = with maintainers; [ cpages ];
platforms = platforms.linux;
license = licenses.gpl3;
};
}

View File

@ -32033,7 +32033,7 @@ with pkgs;
opentyrian = callPackage ../games/opentyrian { };
openxcom = callPackage ../games/openxcom { };
openxcom = callPackage ../games/openxcom { SDL = SDL_compat; };
openxray = callPackage ../games/openxray { };