depot/third_party/nixpkgs/pkgs/applications/emulators/gens-gs/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

26 lines
822 B
Nix

{ lib, stdenv, fetchurl, pkg-config, gtk2, SDL, nasm, zlib, libpng, libGLU, libGL }:
stdenv.mkDerivation rec {
pname = "gens-gs";
version = "7";
src = fetchurl {
url = "http://retrocdn.net/images/6/6d/Gens-gs-r${version}.tar.gz";
sha256 = "1ha5s6d3y7s9aq9f4zmn9p88109c3mrj36z2w68jhiw5xrxws833";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ gtk2 SDL nasm zlib libpng libGLU libGL ];
# Work around build failures on recent GTK.
# See http://ubuntuforums.org/showthread.php?p=10535837
NIX_CFLAGS_COMPILE = "-UGTK_DISABLE_DEPRECATED -UGSEAL_ENABLE";
meta = with lib; {
homepage = "https://segaretro.org/Gens/GS";
description = "A Genesis/Mega Drive emulator";
platforms = [ "i686-linux" ];
license = licenses.gpl2Plus;
maintainers = [ maintainers.eelco ];
};
}