2021-01-17 02:30:45 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk2, SDL, nasm, zlib, libpng, libGLU, libGL }:
|
2010-08-23 20:28:14 +00:00
|
|
|
|
2021-08-12 21:00:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gens-gs";
|
|
|
|
version = "7";
|
2010-08-23 20:28:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-08-12 21:00:21 +00:00
|
|
|
url = "http://retrocdn.net/images/6/6d/Gens-gs-r${version}.tar.gz";
|
2010-08-23 20:28:14 +00:00
|
|
|
sha256 = "1ha5s6d3y7s9aq9f4zmn9p88109c3mrj36z2w68jhiw5xrxws833";
|
|
|
|
};
|
|
|
|
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ gtk2 SDL nasm zlib libpng libGLU libGL ];
|
2010-08-23 20:28:14 +00:00
|
|
|
|
2019-09-03 22:49:40 +00:00
|
|
|
# Work around build failures on recent GTK.
|
2011-03-14 10:54:10 +00:00
|
|
|
# See http://ubuntuforums.org/showthread.php?p=10535837
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = "-UGTK_DISABLE_DEPRECATED -UGSEAL_ENABLE";
|
2011-03-14 10:54:10 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://segaretro.org/Gens/GS";
|
2010-08-23 20:28:14 +00:00
|
|
|
description = "A Genesis/Mega Drive emulator";
|
2010-08-24 09:57:57 +00:00
|
|
|
platforms = [ "i686-linux" ];
|
2018-08-20 17:39:08 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.eelco ];
|
2010-08-23 20:28:14 +00:00
|
|
|
};
|
|
|
|
}
|