2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, scons, qt4, alsaLib }:
|
2016-08-01 19:38:24 +02:00
|
|
|
|
2019-08-13 23:52:01 +02:00
|
|
|
stdenv.mkDerivation {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gambatte";
|
2020-09-09 08:21:20 +02:00
|
|
|
version = "2020-03-14";
|
2016-08-01 19:38:24 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sinamas";
|
|
|
|
repo = "gambatte";
|
2020-09-09 08:21:20 +02:00
|
|
|
rev = "56e3371151b5ee86dcdcf4868324ebc6de220bc9";
|
|
|
|
sha256 = "0cc6zcvxpvi5hgcssb1zy0fkj9nk7n0d2xm88a4v05kpm5zw7sh2";
|
2016-08-01 19:38:24 +02:00
|
|
|
};
|
|
|
|
|
2020-09-09 08:21:20 +02:00
|
|
|
buildInputs = [ scons qt4 alsaLib ];
|
2016-08-01 19:38:24 +02:00
|
|
|
|
2016-08-09 19:37:51 +02:00
|
|
|
patches = [ ./fix-scons-paths.patch ];
|
|
|
|
|
2016-08-01 19:38:24 +02:00
|
|
|
buildPhase = ''
|
|
|
|
./build_qt.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp gambatte_qt/bin/gambatte_qt $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2016-08-01 19:38:24 +02:00
|
|
|
description = "Portable, open-source Game Boy Color emulator";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/sinamas/gambatte";
|
2016-08-01 19:38:24 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.dezgeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|