2021-06-28 23:13:55 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, scons, qt4, alsa-lib }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "gambatte";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "2020-03-14";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sinamas";
|
|
|
|
repo = "gambatte";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "56e3371151b5ee86dcdcf4868324ebc6de220bc9";
|
|
|
|
sha256 = "0cc6zcvxpvi5hgcssb1zy0fkj9nk7n0d2xm88a4v05kpm5zw7sh2";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
buildInputs = [ scons qt4 alsa-lib ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
patches = [ ./fix-scons-paths.patch ];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
./build_qt.sh
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp gambatte_qt/bin/gambatte_qt $out/bin/
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Portable, open-source Game Boy Color emulator";
|
|
|
|
homepage = "https://github.com/sinamas/gambatte";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = [ maintainers.dezgeg ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|