2015-06-14 22:55:24 +00:00
|
|
|
{ stdenv
|
|
|
|
, cairo
|
|
|
|
, cmake
|
2017-09-08 13:27:28 +00:00
|
|
|
, fetchFromGitHub
|
2015-06-14 22:55:24 +00:00
|
|
|
, ffmpeg
|
|
|
|
, gettext
|
2018-02-24 13:12:44 +00:00
|
|
|
, libGLU_combined
|
2015-06-14 22:55:24 +00:00
|
|
|
, openal
|
|
|
|
, pkgconfig
|
2017-09-08 13:27:28 +00:00
|
|
|
, SDL2
|
|
|
|
, sfml
|
2015-06-14 22:55:24 +00:00
|
|
|
, zip
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
2017-09-08 13:27:28 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "visualboyadvance-m-${version}";
|
2019-05-03 08:16:32 +00:00
|
|
|
version = "2.1.3";
|
2017-09-08 13:27:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "visualboyadvance-m";
|
|
|
|
repo = "visualboyadvance-m";
|
2018-10-16 14:25:43 +00:00
|
|
|
rev = "v${version}";
|
2019-05-03 08:16:32 +00:00
|
|
|
sha256 = "0ibpn05jm6zvvrjyxbmh8qwm1qd26v0dzq45cp233ksvapw1h77h";
|
2015-06-14 22:55:24 +00:00
|
|
|
};
|
|
|
|
|
2019-05-03 08:16:32 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig ];
|
|
|
|
|
2015-06-14 22:55:24 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
ffmpeg
|
|
|
|
gettext
|
2018-02-24 13:12:44 +00:00
|
|
|
libGLU_combined
|
2015-06-14 22:55:24 +00:00
|
|
|
openal
|
2017-09-08 13:27:28 +00:00
|
|
|
SDL2
|
|
|
|
sfml
|
2015-06-14 22:55:24 +00:00
|
|
|
zip
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DCMAKE_BUILD_TYPE='Release'"
|
|
|
|
"-DENABLE_FFMPEG='true'"
|
2018-10-16 14:25:43 +00:00
|
|
|
"-DENABLE_LINK='true'"
|
2017-03-03 11:10:09 +00:00
|
|
|
"-DSYSCONFDIR=etc"
|
2018-10-16 14:25:43 +00:00
|
|
|
"-DENABLE_WX='false'"
|
|
|
|
"-DENABLE_SDL='true'"
|
2015-06-14 22:55:24 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A merge of the original Visual Boy Advance forks";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.lassulus ];
|
|
|
|
homepage = http://vba-m.com/;
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2015-06-14 22:55:24 +00:00
|
|
|
};
|
|
|
|
}
|