nixpkgs/pkgs/misc/emulators/vbam/default.nix

58 lines
1 KiB
Nix
Raw Normal View History

2015-06-15 00:55:24 +02:00
{ stdenv
, cairo
, cmake
2017-09-08 15:27:28 +02:00
, fetchFromGitHub
2015-06-15 00:55:24 +02:00
, ffmpeg
, gettext
2019-11-10 17:44:34 +01:00
, libGLU, libGL
2015-06-15 00:55:24 +02:00
, openal
, pkgconfig
2017-09-08 15:27:28 +02:00
, SDL2
, sfml
2015-06-15 00:55:24 +02:00
, zip
, zlib
}:
2017-09-08 15:27:28 +02:00
stdenv.mkDerivation rec {
pname = "visualboyadvance-m";
2019-10-25 14:14:57 +02:00
version = "2.1.4";
2017-09-08 15:27:28 +02:00
src = fetchFromGitHub {
owner = "visualboyadvance-m";
repo = "visualboyadvance-m";
2018-10-16 16:25:43 +02:00
rev = "v${version}";
2019-10-25 14:14:57 +02:00
sha256 = "1kgpbvng3c12ws0dy92zc0azd94h0i3j4vm7b67zc8mi3pqsppdg";
2015-06-15 00:55:24 +02:00
};
nativeBuildInputs = [ cmake pkgconfig ];
2015-06-15 00:55:24 +02:00
buildInputs = [
cairo
ffmpeg
gettext
2019-11-10 17:44:34 +01:00
libGLU libGL
2015-06-15 00:55:24 +02:00
openal
2017-09-08 15:27:28 +02:00
SDL2
sfml
2015-06-15 00:55:24 +02:00
zip
zlib
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE='Release'"
"-DENABLE_FFMPEG='true'"
2018-10-16 16:25:43 +02:00
"-DENABLE_LINK='true'"
"-DSYSCONFDIR=etc"
2018-10-16 16:25:43 +02:00
"-DENABLE_WX='false'"
"-DENABLE_SDL='true'"
2015-06-15 00:55:24 +02:00
];
2019-10-25 14:14:57 +02:00
meta = with stdenv.lib; {
2015-06-15 00:55:24 +02:00
description = "A merge of the original Visual Boy Advance forks";
2019-10-25 14:14:57 +02:00
license = licenses.gpl2;
maintainers = with maintainers; [ lassulus ];
homepage = "https://vba-m.com/";
platforms = stdenv.lib.platforms.linux;
2019-10-25 14:14:57 +02:00
badPlatforms = [ "aarch64-linux" ];
2015-06-15 00:55:24 +02:00
};
}