2021-01-15 13:21:58 +00:00
|
|
|
{ lib, stdenv
|
2015-06-14 22:55:24 +00:00
|
|
|
, cairo
|
|
|
|
, cmake
|
2017-09-08 13:27:28 +00:00
|
|
|
, fetchFromGitHub
|
2021-05-08 14:45:17 +00:00
|
|
|
, fetchpatch
|
2015-06-14 22:55:24 +00:00
|
|
|
, ffmpeg
|
|
|
|
, gettext
|
2019-11-10 16:44:34 +00:00
|
|
|
, libGLU, libGL
|
2015-06-14 22:55:24 +00:00
|
|
|
, openal
|
2021-01-17 02:30:45 +00:00
|
|
|
, pkg-config
|
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 {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "visualboyadvance-m";
|
2019-10-25 12:14:57 +00:00
|
|
|
version = "2.1.4";
|
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-10-25 12:14:57 +00:00
|
|
|
sha256 = "1kgpbvng3c12ws0dy92zc0azd94h0i3j4vm7b67zc8mi3pqsppdg";
|
2015-06-14 22:55:24 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
2019-05-03 08:16:32 +00:00
|
|
|
|
2015-06-14 22:55:24 +00:00
|
|
|
buildInputs = [
|
|
|
|
cairo
|
|
|
|
ffmpeg
|
|
|
|
gettext
|
2019-11-10 16:44:34 +00:00
|
|
|
libGLU libGL
|
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
|
|
|
];
|
|
|
|
|
2021-05-08 14:45:17 +00:00
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
# https://github.com/visualboyadvance-m/visualboyadvance-m/pull/793
|
|
|
|
name = "fix-build-SDL-2.0.14.patch";
|
|
|
|
url = "https://github.com/visualboyadvance-m/visualboyadvance-m/commit/619a5cce683ec4b1d03f08f316ba276d8f8cd824.patch";
|
|
|
|
sha256 = "099cbzgq4r9g83bvdra8a0swfl1vpfng120wf4q7h6vs0n102rk9";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
meta = with lib; {
|
2015-06-14 22:55:24 +00:00
|
|
|
description = "A merge of the original Visual Boy Advance forks";
|
2019-10-25 12:14:57 +00:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ lassulus ];
|
2020-03-27 23:05:50 +00:00
|
|
|
homepage = "https://vba-m.com/";
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2019-10-25 12:14:57 +00:00
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2015-06-14 22:55:24 +00:00
|
|
|
};
|
|
|
|
}
|